X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=zoom%2Fzoomtst5.c;h=446b6aa004973c6a67da4905defefa2ef7aa54dd;hp=02036706c9bd91b3b15f5fa01a9973addf5a793e;hb=df84e4897abc4565fe11adead30b99d9634b41b1;hpb=ee6ab2ee3a9ee1a8c65d7272ec7fba1d886f5af0 diff --git a/zoom/zoomtst5.c b/zoom/zoomtst5.c index 0203670..446b6aa 100644 --- a/zoom/zoomtst5.c +++ b/zoom/zoomtst5.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2008 Index Data + * Copyright (C) 1995-2010 Index Data * See the file LICENSE for details. */ @@ -104,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"); } } @@ -124,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