X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftal%2Ftal.h;h=e525a01d1193144168d52c87ab901a1d9cbc655e;hp=200c2b161fc60916de8fb8954b27c293d2c0e84e;hb=9b3f4ef6eec6a5981dcaa62f45da49b8f4f95388;hpb=b137aba87d2c6dc791539b71f1b3ca8c371b8496 diff --git a/ccan/tal/tal.h b/ccan/tal/tal.h index 200c2b16..e525a01d 100644 --- a/ccan/tal/tal.h +++ b/ccan/tal/tal.h @@ -304,18 +304,18 @@ const char *tal_name(const tal_t *ptr); /** * tal_count - get the count of objects in a tal_arr. - * @ptr: The tal allocated object array. + * @ptr: The tal allocated object array (or NULL) * - * Returns 0 if @ptr has no length property, but be aware that that is - * also a valid size! + * Returns 0 if @ptr has no length property or is NULL, but be aware + * that that is also a valid size! */ #define tal_count(p) (tal_len(p) / sizeof(*p)) /** * tal_len - get the count of bytes in a tal_arr. - * @ptr: The tal allocated object array. + * @ptr: The tal allocated object array (or NULL) * - * Returns 0 if @ptr has no length property, but be aware that that is + * Returns 0 if @ptr has no length property or NULL, but be aware that that is * also a valid size! */ size_t tal_len(const tal_t *ptr);