X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fapitest.c;h=69574e4f7e16d3d51147b10cc501b582dfad0df1;hb=1c3797bc503c1e7a109c8887d89d3ddda93bba71;hp=9ed3508f1dc7f5bcc0501d77ba43773664541c57;hpb=795af4e3c7346eff351ff387228ec548956eada8;p=idzebra-moved-to-github.git diff --git a/index/apitest.c b/index/apitest.c index 9ed3508..69574e4 100644 --- a/index/apitest.c +++ b/index/apitest.c @@ -1,8 +1,8 @@ #include -#include -#include +#include +#include #include "zebraapi.h" /* Small routine to display GRS-1 record variants ... */ @@ -147,7 +147,25 @@ int main (int argc, char **argv) odr_reset (odr_input); continue; } + else + { + char out_str[100]; + int r; +#if 1 + r = zebra_string_norm (zh, 'w', + argv[argno], strlen(argv[argno]), + out_str, sizeof(out_str)); + if (r >= 0) + { + printf ("norm: '%s'\n", out_str); + } + else + { + printf ("norm fail: %d\n", r); + } +#endif + } /* result set name will be called 1,2, etc */ sprintf (setname, "%d", argno);