X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftal%2Fstr%2F_info;h=9b9c70b6be7f1198e684e23dc0bf892f41fbb04f;hb=55d814230f7fb628bb5303cd53498209c7928040;hp=cb81c9e19df33a64eb0e6323810d3d3129d9ff7e;hpb=a7b28fafda0e5c119a2507ef2fd0d5b620cdb892;p=ccan diff --git a/ccan/tal/str/_info b/ccan/tal/str/_info index cb81c9e1..9b9c70b6 100644 --- a/ccan/tal/str/_info +++ b/ccan/tal/str/_info @@ -7,7 +7,9 @@ * * This is a grab bag of functions for string operations, designed to enhance * the standard string.h; these are separated from the non-tal-needing - * string utilities in "str.h". + * string utilities in "str.h". Each string created by this library + * will have tal_count() equal to strlen() + 1 (assuming you didn't create + * a string containing a NUL, such as using tal_fmt("%c", 0)). * * Example: * #include @@ -20,6 +22,8 @@ * char *textfile; * char **lines; * + * if (argc > 2) + * errx(1, "Takes 0 or 1 arguments"); * // Grab lines in file. * textfile = grab_file(NULL, argv[1]); * if (!textfile)