]> git.ozlabs.org Git - ccan/blobdiff - ccan/tal/str/str.h
tal/str: make tal_count() work for strsplit.
[ccan] / ccan / tal / str / str.h
index 7d0a94541e41b10501ca2076ab6536ffa489d7e1..295c3a6b9cb0b0c63d779877b0001b012641ce9b 100644 (file)
@@ -26,7 +26,8 @@ enum strsplit {
  * Multiple delimiters result in empty substrings.  By definition, no
  * delimiters will appear in the substrings.
  *
- * The final char * in the array will be NULL.
+ * The final char * in the array will be NULL, and tal_count() will
+ * return the number of elements plus 1 (for that NULL).
  *
  * Example:
  *     #include <ccan/tal/str/str.h>