Directive s=pw sets structure to phrase if term includes blank(s).
[yaz-moved-to-github.git] / asn / test.c
index e61e12e..a68304c 100644 (file)
@@ -1,7 +1,6 @@
 #include <stdio.h>
-#include <odr.h>
-#include <odr_use.h>
-#include <proto.h>
+#include <yaz/odr.h>
+#include <yaz/proto.h>
 
 int main()
 {
@@ -46,8 +45,8 @@ int main()
     apt.num_attributes=0;
     apt.attributeList = 0;
     apt.term = &term;
-    term.buf = "BARFOO";
-    term.len = term.size = strlen(term.buf);
+    term.buf = (unsigned char*) "BARFOO";
+    term.len = term.size = strlen((char*)term.buf);
 
     o.buf = buf;
     o.bp=o.buf;