X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fstr_talloc%2Fstr_talloc.h;fp=ccan%2Fstr_talloc%2Fstr_talloc.h;h=50cea2dcb3b4ce6db7d3bcd968b41215a1a475e6;hb=1fe7f55b1efc5deefb20815a03b56c8ef0f6dc53;hp=9828cd85d00aa2fc27f695786bfe03cfdabeb02a;hpb=ab4a6fd9a3b417456ccd8f1fb976783683ccaa26;p=ccan-lca-2011.git diff --git a/ccan/str_talloc/str_talloc.h b/ccan/str_talloc/str_talloc.h index 9828cd8..50cea2d 100644 --- a/ccan/str_talloc/str_talloc.h +++ b/ccan/str_talloc/str_talloc.h @@ -20,7 +20,10 @@ * @nump to find the array length. * * Example: - * unsigned int count_long_lines(const char *text) + * #include + * #include + * ... + * static unsigned int count_long_lines(const char *string) * { * char **lines; * unsigned int i, long_lines = 0; @@ -49,10 +52,9 @@ char **strsplit(const void *ctx, const char *string, const char *delims, * * Example: * // Append the string "--EOL" to each line. - * char *append_to_all_lines(const char *string) + * static char *append_to_all_lines(const char *string) * { * char **lines, *ret; - * unsigned int i, num, newnum; * * lines = strsplit(NULL, string, "\n", NULL); * ret = strjoin(NULL, lines, "-- EOL\n");