+ if (next_token_copy (args, start_str, sizeof(start_str)) >= 0)
+ ZOOM_options_set (options, "start", start_str);
+
+ if (next_token_copy (args, count_str, sizeof(count_str)) >= 0)
+ ZOOM_options_set (options, "count", count_str);
+
+ for (i = 0; i<MAX_CON; i++)
+ ZOOM_resultset_records (r[i], 0, atoi(start_str), atoi(count_str));
+ while (ZOOM_event (MAX_CON, c))
+ ;
+
+ for (i = 0; i<MAX_CON; i++)
+ {
+ int error;
+ const char *errmsg, *addinfo, *dset;
+ /* display errors if any */
+ if (!c[i])
+ continue;
+ if ((error = ZOOM_connection_error_x(c[i], &errmsg, &addinfo, &dset)))
+ printf ("%s error: %s (%s:%d) %s\n",
+ ZOOM_connection_option_get(c[i], "host"), errmsg,
+ dset, error, addinfo);
+ else if (r[i])
+ {
+ /* OK, no major errors. Display records... */
+ int start = ZOOM_options_get_int (options, "start", 0);
+ int count = ZOOM_options_get_int (options, "count", 0);
+ display_records (c[i], r[i], start, count);
+ }
+ }
+ ZOOM_options_set (options, "count", "0");
+ ZOOM_options_set (options, "start", "0");
+}