Mercurial > hg > th-libs
changeset 223:d58b92ef5c03
Improve documentation.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 15 Feb 2016 10:46:45 +0200 |
parents | 723a69185102 |
children | 128c8cb80205 |
files | th_string.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/th_string.c Mon Feb 15 10:45:05 2016 +0200 +++ b/th_string.c Mon Feb 15 10:46:45 2016 +0200 @@ -49,9 +49,9 @@ } -/* Like strdup, but trims whitespace from the string - * according to specified flags. See TH_TRIM_* in - * th_string.h +/* Like strdup, but trims whitespace from the string according to specified flags. + * See TH_TRIM_* in th_string.h. If the resulting string would be empty (length 0), + * NULL is returned. */ static inline char * th_strdup_trim_do(const char *src, size_t len, const int flags) {