X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=zoom%2Fzoomtst7.c;h=4fb83bd3cdf9f60211b892b623a8fa9c7535ac2e;hp=0f39f8948ecf062c562fa09c91d911e4076a8b7d;hb=ed907bd829d0a9e00cfd1b0f3cf0d41dc68563c6;hpb=d57ade59211707b9bcfacc61039e446c9fa3f36f diff --git a/zoom/zoomtst7.c b/zoom/zoomtst7.c index 0f39f89..4fb83bd 100644 --- a/zoom/zoomtst7.c +++ b/zoom/zoomtst7.c @@ -1,8 +1,7 @@ -/* $Id: zoomtst7.c,v 1.15 2006-04-21 10:28:08 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 (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