- int error;
- const char *errmsg, *addinfo;
- const char *tname = (same_target ? argv[2] : argv[1+i]);
- /* display errors if any */
- if ((error = ZOOM_connection_error(z[i], &errmsg, &addinfo)))
- fprintf (stderr, "%s error: %s (%d) %s\n", tname, errmsg,
- error, addinfo);
- else
- {
- /* OK, no major errors. Look at the result count */
- int pos;
- printf ("%s: %d hits\n", tname, ZOOM_resultset_size(r[i]));
- /* go through all records at target */
- for (pos = 0; pos < 10; pos++)
- {
- int len; /* length of buffer rec */
- const char *rec =
- ZOOM_record_get (
+ int error;
+ const char *errmsg, *addinfo;
+ const char *tname = (same_target ? argv[2] : argv[1+i]);
+ /* display errors if any */
+ if ((error = ZOOM_connection_error(z[i], &errmsg, &addinfo)))
+ fprintf (stderr, "%s error: %s (%d) %s\n", tname, errmsg,
+ error, addinfo);
+ else
+ {
+ /* OK, no major errors. Look at the result count */
+ int pos;
+ printf ("%s: %ld hits\n", tname, (long) ZOOM_resultset_size(r[i]));
+ /* go through all records at target */
+ for (pos = 0; pos < 10; pos++)
+ {
+ int len; /* length of buffer rec */
+ const char *rec =
+ ZOOM_record_get (