X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zoom%2Fzoomtst6.c;h=32154212607541335a686f17f4ec644fdff92cba;hb=22dca6e3b2a29f15ddbd3c2489e67aef608c3545;hp=90f41fff0ace50501bc7deb27aa74d8a5415d2c3;hpb=d57ade59211707b9bcfacc61039e446c9fa3f36f;p=yaz-moved-to-github.git diff --git a/zoom/zoomtst6.c b/zoom/zoomtst6.c index 90f41ff..3215421 100644 --- a/zoom/zoomtst6.c +++ b/zoom/zoomtst6.c @@ -1,8 +1,7 @@ -/* $Id: zoomtst6.c,v 1.12 2006-04-21 10:28:08 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) != (size_t) len) + printf("write to stdout failed\n"); + } printf ("\n"); } }