X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zoom%2Fzoomtst7.c;h=78d13e9ea1b70a2cb9d12cf352d15f83e790ed76;hb=22dca6e3b2a29f15ddbd3c2489e67aef608c3545;hp=cc255dd57f044cb77f092d12dbb91d7dfb99777c;hpb=8d691989077a0addcbd840d769dce6700f3d9622;p=yaz-moved-to-github.git diff --git a/zoom/zoomtst7.c b/zoom/zoomtst7.c index cc255dd..78d13e9 100644 --- a/zoom/zoomtst7.c +++ b/zoom/zoomtst7.c @@ -1,8 +1,7 @@ -/* $Id: zoomtst7.c,v 1.16 2007-01-03 08:42:17 adam Exp $ */ - -/** \file zoomtst7.c - \brief Mix of operations -*/ +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2008 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,12 +154,12 @@ 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