X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=zoom%2Fzoomtst3.c;h=769df73af0daa6f9d6c0e0523bb845f942c16dfd;hp=69f9161b2151bf6197c549d526a61eb85bfd418d;hb=b6aa93dcb5c07ed09b664c006b5f33b0135a0854;hpb=2788a4851b551e1a3efb320a2878b809f2d8a9d7 diff --git a/zoom/zoomtst3.c b/zoom/zoomtst3.c index 69f9161..769df73 100644 --- a/zoom/zoomtst3.c +++ b/zoom/zoomtst3.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2009 Index Data + * Copyright (C) 1995-2010 Index Data * See the file LICENSE for details. */ @@ -66,9 +66,11 @@ int main(int argc, char **argv) while ((i = ZOOM_event (no, z))) { int peek = ZOOM_connection_peek_event(z[i-1]); - printf ("no = %d peek = %d event = %d\n", i-1, + int event = ZOOM_connection_last_event(z[i-1]); + printf ("no = %d peek = %d event = %d %s\n", i-1, peek, - ZOOM_connection_last_event(z[i-1])); + event, + ZOOM_get_event_str(event)); } /* no more to be done. Inspect results */ @@ -111,6 +113,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