]> git.ozlabs.org Git - ccan/blobdiff - ccan/str_talloc/test/run.c
opt: allow parameter names in arguments.
[ccan] / ccan / str_talloc / test / run.c
index 6da48bd0bc98f2c5fceb776012e08c5c1372b8b1..4e1c3d168dcdd475994fb83b251a54c1b9662562 100644 (file)
@@ -1,15 +1,20 @@
-#include "str_talloc/str_talloc.h"
+#include <ccan/str_talloc/str_talloc.h>
 #include <stdlib.h>
 #include <stdio.h>
-#include "str_talloc/str_talloc.c"
-#include "tap/tap.h"
+#include <ccan/str_talloc/str_talloc.c>
+#include <ccan/tap/tap.h>
+#include <ccan/str/str.h>
 
 /* FIXME: ccanize */
 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0]))
 
+static char *substrings[] = { "far", "bar", "baz", "b", "ba", "z", "ar", NULL };
+
 int main(int argc, char *argv[])
 {
-       unsigned int i, j, n;
+       unsigned int n;
+       char **split, *str;
+       void *ctx;
 
        plan_tests(19);
        split = strsplit(NULL, "hello  world", " ", &n);