X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=zoom%2Fzoomtst7.c;h=4fb83bd3cdf9f60211b892b623a8fa9c7535ac2e;hp=2192abd5eeec459622323dd5979f7cde871085ff;hb=ed907bd829d0a9e00cfd1b0f3cf0d41dc68563c6;hpb=fb6d99a0c7e07d9cc4a315c447deaf6564a85505 diff --git a/zoom/zoomtst7.c b/zoom/zoomtst7.c index 2192abd..4fb83bd 100644 --- a/zoom/zoomtst7.c +++ b/zoom/zoomtst7.c @@ -1,7 +1,6 @@ -/* - * $Id: zoomtst7.c,v 1.14 2005-06-25 15:46:08 adam Exp $ - * - * API test.. +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2011 Index Data + * See the file LICENSE for details. */ #include @@ -16,12 +15,11 @@ int main(int argc, char **argv) { int block; - size_t j, i; + int i, j; ZOOM_connection z; ZOOM_resultset r[10]; /* and result sets .. */ ZOOM_options o; - nmem_init (); o = ZOOM_options_create (); z = ZOOM_connection_new ("localhost", 9999); @@ -156,18 +154,19 @@ int main(int argc, char **argv) z = ZOOM_connection_create (o); ZOOM_connection_connect (z, host, 0); - scan = ZOOM_connection_scan (z, "@attr 1=4 a"); + scan = ZOOM_connection_scan(z, "@attr 1=4 a"); if (block > 0) while (ZOOM_event (1, &z)) ; - printf (" scan size = %d\n", ZOOM_scanset_size(scan)); - for (j = 0; j