- int error;
- const char *errmsg, *addinfo;
- if ((error = Z3950_connection_error(z[i], &errmsg, &addinfo)))
- fprintf (stderr, "%s error: %s (%d) %s\n",
- Z3950_connection_option_get(z[i], "host"),
- errmsg, error, addinfo);
- else
- {
- /* OK, no major errors. Look at the result count */
- int pos;
- printf ("%s: %d hits\n", Z3950_connection_option_get(z[i], "host"),
- Z3950_resultset_size(r[i]));
- /* go through all records at target */
- for (pos = 0; pos < 20; pos++)
- {
- Z3950_record rec;
- const char *db, *syntax, *str;
- int len;
+ int error;
+ const char *errmsg, *addinfo;
+ if ((error = ZOOM_connection_error(z[i], &errmsg, &addinfo)))
+ fprintf(stderr, "%s error: %s (%d) %s\n",
+ ZOOM_connection_option_get(z[i], "host"),
+ errmsg, error, addinfo);
+ else
+ {
+ /* OK, no major errors. Look at the result count */
+ int pos;
+ printf("%s: %ld hits\n", ZOOM_connection_option_get(z[i], "host"),
+ (long) ZOOM_resultset_size(r[i]));
+ /* go through first 20 records at target */
+ for (pos = 0; pos < 20; pos++)
+ {
+ ZOOM_record rec;
+ const char *db, *syntax, *str;
+ int record_len, syntax_len;