X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=zoom%2Fzoomtst5.c;h=be3dbd092b43c65a78a877dc1d69228a9f21ff44;hp=1d4cdda90eea469b821635feffca9494930b83fd;hb=7dbee1f341772642df14925d639f03aec2eb3355;hpb=d57ade59211707b9bcfacc61039e446c9fa3f36f diff --git a/zoom/zoomtst5.c b/zoom/zoomtst5.c index 1d4cdda..be3dbd0 100644 --- a/zoom/zoomtst5.c +++ b/zoom/zoomtst5.c @@ -1,10 +1,7 @@ -/* $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-2009 Index Data + * See the file LICENSE for details. + */ #include #include @@ -107,7 +104,10 @@ int main(int argc, char **argv) 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"); } } @@ -127,6 +127,7 @@ int main(int argc, char **argv) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab