+static void cmd_rget(ZOOM_connection *c, ZOOM_resultset *r,
+ ZOOM_options options,
+ const char **args)
+{
+ char key[40];
+ if (next_token_copy (args, key, sizeof(key)) < 0)
+ {
+ printf ("missing argument for get\n");
+ }
+ else
+ {
+ int i;
+ for (i = 0; i<MAX_CON; i++)
+ {
+ const char *val;
+ if (!r[i])
+ continue;
+
+ val = ZOOM_resultset_option_get(r[i], key);
+ printf ("%s = %s\n", key, val ? val : "<null>");
+ }
+ }
+}
+