X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=zoom%2Fzoomtst3.c;h=340d3bf2035a5afd1be1c16115c587f642c99896;hp=98f797c0b4bdea76286989f1c676d6aafe401b58;hb=eceac7b7869288887b1b14212208e73ab54116db;hpb=52741a76f17524da0bc416fe82db69eda7700797 diff --git a/zoom/zoomtst3.c b/zoom/zoomtst3.c index 98f797c..340d3bf 100644 --- a/zoom/zoomtst3.c +++ b/zoom/zoomtst3.c @@ -1,10 +1,7 @@ -/* $Id: zoomtst3.c,v 1.13 2007-01-10 13:25:46 adam Exp $ */ - -/** \file zoomtst3.c - \brief Asynchronous multi-target client - - Performs search and piggyback retrieval of records -*/ +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2009 Index Data + * See the file LICENSE for details. + */ #include #include @@ -98,12 +95,7 @@ int main(int argc, char **argv) ZOOM_resultset_record (r[i], pos), "render", &len); /* if rec is non-null, we got a record for display */ if (rec) - { - printf ("%d\n", pos+1); - if (rec) - fwrite (rec, 1, len, stdout); - printf ("\n"); - } + printf ("%d\n%.*s\n", pos+1, len, rec); } } } @@ -119,6 +111,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