projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed a bug in ASN.1 compiler that caused Type-1 Operator codec to fail
[yaz-moved-to-github.git]
/
zoom
/
zoomtst5.c
diff --git
a/zoom/zoomtst5.c
b/zoom/zoomtst5.c
index
a267465
..
5061d13
100644
(file)
--- a/
zoom/zoomtst5.c
+++ b/
zoom/zoomtst5.c
@@
-1,5
+1,5
@@
/*
/*
- * $Id: zoomtst5.c,v 1.6 2001-11-18 21:14:23 adam Exp $
+ * $Id: zoomtst5.c,v 1.9 2002-02-28 13:21:16 adam Exp $
*
* Asynchronous multi-target client doing search, sort and present
*/
*
* Asynchronous multi-target client doing search, sort and present
*/
@@
-86,7
+86,7
@@
int main(int argc, char **argv)
int pos;
printf ("%s: %d hits\n", ZOOM_connection_option_get(z[i], "host"),
ZOOM_resultset_size(r[i]));
int pos;
printf ("%s: %d hits\n", ZOOM_connection_option_get(z[i], "host"),
ZOOM_resultset_size(r[i]));
- /* go through all records at target */
+ /* go through first 20 records at target */
for (pos = 0; pos < 20; pos++)
{
ZOOM_record rec;
for (pos = 0; pos < 20; pos++)
{
ZOOM_record rec;
@@
-97,7
+97,7
@@
int main(int argc, char **argv)
/* get database for record and record itself at pos */
db = ZOOM_record_get (rec, "database", 0);
/* get database for record and record itself at pos */
db = ZOOM_record_get (rec, "database", 0);
- str = ZOOM_record_get (rec, "render", &len);
+ str = ZOOM_record_get (rec, "xml", &len);
syntax = ZOOM_record_get (rec, "syntax", &len);
/* if rec is non-null, we got a record for display */
if (str)
syntax = ZOOM_record_get (rec, "syntax", &len);
/* if rec is non-null, we got a record for display */
if (str)
@@
-106,7
+106,7
@@
int main(int argc, char **argv)
(db ? db : "unknown"));
if (rec)
fwrite (str, 1, len, stdout);
(db ? db : "unknown"));
if (rec)
fwrite (str, 1, len, stdout);
- putchar ('\n');
+ printf ("\n");
}
}
}
}
}
}