X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=zoom%2Fzoomtst7.c;h=4fb83bd3cdf9f60211b892b623a8fa9c7535ac2e;hp=7b73550a8c46534f823a9e22159961ff0dd8d596;hb=ed907bd829d0a9e00cfd1b0f3cf0d41dc68563c6;hpb=e20877bdeb227b7c4179b6defa3eb5b44599d707 diff --git a/zoom/zoomtst7.c b/zoom/zoomtst7.c index 7b73550..4fb83bd 100644 --- a/zoom/zoomtst7.c +++ b/zoom/zoomtst7.c @@ -1,8 +1,7 @@ -/* $Id: zoomtst7.c,v 1.17 2007-03-19 20:58:34 adam Exp $ */ - -/** \file zoomtst7.c - \brief Mix of operations -*/ +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2011 Index Data + * See the file LICENSE for details. + */ #include #include @@ -21,7 +20,6 @@ int main(int argc, char **argv) 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_pqf(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 = %ld\n", (long) ZOOM_scanset_size(scan)); - for (j = 0; j