summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
00537b4)
And also fix condition that would never be true.
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
+#include <yaz/matchstr.h>
#include <yaz/z-core.h>
#include <yaz/sortspec.h>
#include <yaz/z-core.h>
#include <yaz/sortspec.h>
if (num_arg != 2)
return -1;
if (num_arg != 2)
return -1;
- if (!strcasecmp(arg[1],"asc") &&
- !strcasecmp(arg[1],"desc"))
+ if (yaz_matchstr(arg[1], "asc") &&
+ yaz_matchstr(arg[1], "desc"))
return -1;
if (arg[1][0]) {
return -1;
if (arg[1][0]) {