]> git.ozlabs.org Git - ccan/blobdiff - ccan/str_talloc/_info
strsplit: remove nump argument
[ccan] / ccan / str_talloc / _info
index 186075f27b7176ff5c8623b028b22725b8f94772..4edee27b2a5d7027d5d33a6fd65794efd98c6210 100644 (file)
@@ -25,7 +25,7 @@
  *             textfile = grab_file(NULL, argv[1], NULL);
  *             if (!textfile)
  *                     err(1, "Failed reading %s", argv[1]);
- *             lines = strsplit(textfile, textfile, "\n", NULL);
+ *             lines = strsplit(textfile, textfile, "\n");
  *     
  *             // Join them back together with two linefeeds.
  *             printf("%s", strjoin(textfile, lines, "\n\n"));
@@ -44,6 +44,7 @@ int main(int argc, char *argv[])
                return 1;
 
        if (strcmp(argv[1], "depends") == 0) {
+               printf("ccan/str\n");
                printf("ccan/talloc\n");
                printf("ccan/noerr\n");
                return 0;