X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zoom%2Fzoomtst6.c;h=cce5ea107edb229a1e3f815ef93f2e9fe89b6e15;hb=32e16c37ce5b2d1ed0b3e6edfb48fd5ae1ec24b3;hp=891a4192aeb24c2bb89293a23e93458e72e2fa59;hpb=8d691989077a0addcbd840d769dce6700f3d9622;p=yaz-moved-to-github.git diff --git a/zoom/zoomtst6.c b/zoom/zoomtst6.c index 891a419..cce5ea1 100644 --- a/zoom/zoomtst6.c +++ b/zoom/zoomtst6.c @@ -1,8 +1,7 @@ -/* $Id: zoomtst6.c,v 1.13 2007-01-03 08:42:17 adam Exp $ */ - -/** \file zoomtst6.c - \brief Asynchronous multi-target client with two searches -*/ +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2008 Index Data + * See the file LICENSE for details. + */ #include #include @@ -30,7 +29,10 @@ static void display_records (const char *tname, ZOOM_resultset r) { printf ("%d %s\n", pos+1, (db ? db : "unknown")); if (render) - fwrite (render, 1, len, stdout); + { + if (fwrite (render, 1, len, stdout) != len) + printf("write to stdout failed\n"); + } printf ("\n"); } }