X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fstrset%2F_info;h=982a9c0f851ae7d5485b42cc2e53578125613e14;hp=1c7426e66973c2b7b3687ab1d3aca38d689848c9;hb=HEAD;hpb=516c47790828cfb892fecdbe03a6928c345d29b2 diff --git a/ccan/strset/_info b/ccan/strset/_info index 1c7426e6..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,7 +16,7 @@ * Example: * // Print all words in order. * #include - * #include + * #include * #include * #include * @@ -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,8 +45,8 @@ * 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: CC0 (but some dependencies are LGPL!) * Author: Rusty Russell