Code updates which makes things compile as C++. Mostly type casts were
[yaz-moved-to-github.git] / zoom / zoomtst7.c
index 2192abd..235b470 100644 (file)
@@ -1,8 +1,8 @@
-/*
- * $Id: zoomtst7.c,v 1.14 2005-06-25 15:46:08 adam Exp $
- *
- * API test..
- */
+/* $Id: zoomtst7.c,v 1.19 2007-04-17 20:26:19 adam Exp $  */
+
+/** \file zoomtst7.c
+    \brief Mix of operations
+*/
 
 #include <stdio.h>
 #include <stdlib.h>
 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,11 +155,11 @@ 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));
+            printf (" scan size = %ld\n", (long) ZOOM_scanset_size(scan));
             for (j = 0; j<ZOOM_scanset_size (scan); j++)
             {
                 int occur, len;