#include <stdio.h>
#include "zoom-c.h"
int main(int argc, char **argv)
{
Z3950_connection z;
Z3950_search s;
Z3950_resultset r;
if (argc < 3) {
exit(0);
}
z = Z3950_connect(argv[1], 0);
s = Z3950_search_create();
if (Z3950_search_prefix(s, argv[2])) {
printf("bad query: %s\n", argv[2]);
exit(1);
}
r = Z3950_connection_search(z, s);
Z3950_resultset_destroy(r);
Z3950_search_destroy(s);
Z3950_connection_destroy(z);
exit(0);
}