X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=zoom%2Fzoomsh.c;h=270942b6de67d9d8c8fbbc79e403f182219d4469;hp=d61919d8ceb6956aee8a94285ee018345a333a9d;hb=1167a422a06ea4d4a4b0c14a9f6df5042790f99e;hpb=c938bc81f8da3cac9dd4ca57498cfbdff216d7e9 diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index d61919d..270942b 100644 --- a/zoom/zoomsh.c +++ b/zoom/zoomsh.c @@ -1,5 +1,5 @@ /* - * $Id: zoomsh.c,v 1.16 2003-02-23 15:24:27 adam Exp $ + * $Id: zoomsh.c,v 1.17 2003-02-24 13:14:49 adam Exp $ * * ZOOM-C Shell */ @@ -297,6 +297,42 @@ static void cmd_search (ZOOM_connection *c, ZOOM_resultset *r, ZOOM_query_destroy (s); } +static void cmd_scan (ZOOM_connection *c, ZOOM_resultset *r, + ZOOM_options options, + const char **args) +{ + const char *start_term = *args; + int i; + ZOOM_scanset s[MAX_CON]; + + while (*start_term == ' ') + start_term++; + + for (i = 0; i\n"); printf ("search \n"); printf ("show [ []\n"); + printf ("scan \n"); printf ("quit\n"); printf ("close \n"); printf ("set