-/*
- * $Id: zoomtst6.c,v 1.11 2005-11-04 15:51:02 mike Exp $
- *
- * Asynchronous multi-target client doing two searches
+/* This file is part of the YAZ toolkit.
+ * Copyright (C) 1995-2010 Index Data
+ * See the file LICENSE for details.
*/
#include <stdio.h>
{
/* OK, no major errors. Look at the result count */
int pos;
- printf ("%s: %d hits\n", tname, ZOOM_resultset_size(r));
+ printf ("%s: %ld hits\n", tname, (long) ZOOM_resultset_size(r));
/* go through all records at target */
for (pos = 0; pos < 4; pos++)
{
{
printf ("%d %s\n", pos+1, (db ? db : "unknown"));
if (render)
- fwrite (render, 1, len, stdout);
+ {
+ if (fwrite (render, 1, len, stdout) != (size_t) len)
+ printf("write to stdout failed\n");
+ }
printf ("\n");
}
}
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab