-/* $Id: zoomtst5.c,v 1.11 2006-04-21 10:28:08 adam Exp $ */
-
-/** \file zoomtst5.c
- \brief Asynchronous multi-target client with sort
-
- Asynchronous multi-target client doing search, sort and present
-*/
+/* This file is part of the YAZ toolkit.
+ * Copyright (C) 1995-2011 Index Data
+ * See the file LICENSE for details.
+ */
#include <stdio.h>
#include <string.h>
printf ("%d %s %s\n", pos+1, syntax,
(db ? db : "unknown"));
if (rec)
- fwrite (str, 1, len, stdout);
+ {
+ if (fwrite (str, 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