X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zoom%2Fzoomsh.c;h=fb538f36c96526a2f670342b0c41b50e8d19d6d5;hb=f512aa33473ae86f8e8efd8da749a82c398e87f0;hp=6aedbd06dcadcfca1501e73ec947edaaa33dea50;hpb=c9c53d8b79a1d6283dcc446ed3f1292a4522a49c;p=yaz-moved-to-github.git diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index 6aedbd0..fb538f3 100644 --- a/zoom/zoomsh.c +++ b/zoom/zoomsh.c @@ -1,5 +1,5 @@ /* - * $Id: zoomsh.c,v 1.11 2002-06-05 21:09:20 adam Exp $ + * $Id: zoomsh.c,v 1.15 2003-02-17 21:23:31 adam Exp $ * * ZOOM-C Shell */ @@ -18,6 +18,7 @@ #include +#include #include #define MAX_CON 100 @@ -168,14 +169,14 @@ static void cmd_show (ZOOM_connection *c, ZOOM_resultset *r, for (i = 0; i 999) { - fprintf(stderr,"Input line too long\n"); + printf("Input line too long\n"); break; }; strcpy(buf,line_in); @@ -433,6 +449,8 @@ int main (int argc, char **argv) int i, res; ZOOM_connection z39_con[MAX_CON]; ZOOM_resultset z39_res[MAX_CON]; + + nmem_init(); for (i = 0; i