X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fstrset%2F_info;h=982a9c0f851ae7d5485b42cc2e53578125613e14;hp=a3192325db721c67e374c354375317216709c577;hb=HEAD;hpb=7c69053bd418bf0abd21f29e8cb11164684310ca diff --git a/ccan/strset/_info b/ccan/strset/_info index a3192325..982a9c0f 100644 --- a/ccan/strset/_info +++ b/ccan/strset/_info @@ -1,5 +1,6 @@ -#include #include "config.h" +#include +#include /** * strset - an ordered set of strings @@ -15,14 +16,14 @@ * Example: * // Print all words in order. * #include - * #include + * #include * #include * #include * * static bool dump(const char *member, void *unused) * { * printf("%s ", member); - * return false; + * return true; // Keep going with iteration. * } * * int main(void) @@ -31,7 +32,7 @@ * char *file, *word; * * strset_init(&words); - * file = grab_fd(NULL, 0, NULL); + * file = grab_fd(NULL, 0); * if (!file) * err(1, "Reading stdin"); * @@ -44,10 +45,10 @@ * printf("\n"); * return 0; * } - * // Given "foo bar" outputs "bar foo " - * // Given "foo foo bar" outputs "bar foo " + * // Given "foo bar" outputs "bar foo \n" + * // Given "foo foo bar" outputs "bar foo \n" * - * License: Public domain (but some dependencies are LGPL!) + * License: CC0 (but some dependencies are LGPL!) * Author: Rusty Russell * Ccanlint: * license_depends_compat FAIL