Use printf instead of putchar
[yaz-moved-to-github.git] / zoom / zoomtst5.c
index a267465..0d24287 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: zoomtst5.c,v 1.6 2001-11-18 21:14:23 adam Exp $
+ * $Id: zoomtst5.c,v 1.8 2002-02-20 14:40:42 adam Exp $
  *
  * Asynchronous multi-target client doing search, sort and present
  */
@@ -86,7 +86,7 @@ int main(int argc, char **argv)
            int pos;
            printf ("%s: %d hits\n", ZOOM_connection_option_get(z[i], "host"),
                    ZOOM_resultset_size(r[i]));
-           /* go through all records at target */
+           /* go through first 20 records at target */
            for (pos = 0; pos < 20; pos++)
            {
                ZOOM_record rec;
@@ -106,7 +106,7 @@ int main(int argc, char **argv)
                            (db ? db : "unknown"));
                    if (rec)
                        fwrite (str, 1, len, stdout);
-                   putchar ('\n');
+                   printf ("\n");
                }
            }
        }