X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zoom%2Fzoomtst3.c;h=52ee5a3ad15ec2d229e126f9749dcca871f3afc1;hb=16cec0c7730f9ae5ce52a12a66d139e02cb806c0;hp=8873db8cbcca39babbbe59084d4b0c1a1534cef9;hpb=ee6ab2ee3a9ee1a8c65d7272ec7fba1d886f5af0;p=yaz-moved-to-github.git diff --git a/zoom/zoomtst3.c b/zoom/zoomtst3.c index 8873db8..52ee5a3 100644 --- a/zoom/zoomtst3.c +++ b/zoom/zoomtst3.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. */ @@ -95,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); } } } @@ -116,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