X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fstr_talloc%2Fstr_talloc.h;h=50cea2dcb3b4ce6db7d3bcd968b41215a1a475e6;hb=b371060fb7e2aa6a5990413cabe5fcc5ba5cc84c;hp=9828cd85d00aa2fc27f695786bfe03cfdabeb02a;hpb=9965fc25fcc92dc76d1cd4cf9595dc3dc9ebc586;p=ccan diff --git a/ccan/str_talloc/str_talloc.h b/ccan/str_talloc/str_talloc.h index 9828cd85..50cea2dc 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");