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
Update various URLs
[yaz-moved-to-github.git]
/
zoom
/
zoomtst3.c
diff --git
a/zoom/zoomtst3.c
b/zoom/zoomtst3.c
index
7c2f751
..
4d1f717
100644
(file)
--- a/
zoom/zoomtst3.c
+++ b/
zoom/zoomtst3.c
@@
-1,12
+1,12
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2011 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
* See the file LICENSE for details.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <ctype.h>
+#include <yaz/yaz-iconv.h>
#include <yaz/xmalloc.h>
#include <yaz/xmalloc.h>
@@
-27,7
+27,7
@@
int main(int argc, char **argv)
"%s number target query\n", *argv, *argv);
exit (1);
}
"%s number target query\n", *argv, *argv);
exit (1);
}
- if (argc == 4 && isdigit(argv[1][0]) && !strchr(argv[1],'.'))
+ if (argc == 4 && yaz_isdigit(argv[1][0]) && !strchr(argv[1],'.'))
{
no = atoi(argv[1]);
same_target = 1;
{
no = atoi(argv[1]);
same_target = 1;
@@
-41,6
+41,7
@@
int main(int argc, char **argv)
/* get first 10 records of result set (using piggyback) */
ZOOM_options_set (o, "count", "10");
/* get first 10 records of result set (using piggyback) */
ZOOM_options_set (o, "count", "10");
+ ZOOM_options_set (o, "step", "5");
/* preferred record syntax */
ZOOM_options_set (o, "preferredRecordSyntax", "usmarc");
/* preferred record syntax */
ZOOM_options_set (o, "preferredRecordSyntax", "usmarc");
@@
-72,7
+73,7
@@
int main(int argc, char **argv)
event,
ZOOM_get_event_str(event));
}
event,
ZOOM_get_event_str(event));
}
-
+
/* no more to be done. Inspect results */
for (i = 0; i<no; i++)
{
/* no more to be done. Inspect results */
for (i = 0; i<no; i++)
{