# HG changeset patch # User Matti Hamalainen # Date 1455526005 -7200 # Node ID d58b92ef5c03ec6a1a9050e29dfe7e8837413633 # Parent 723a69185102be4287b26516249ac30c89f6b1ec Improve documentation. diff -r 723a69185102 -r d58b92ef5c03 th_string.c --- 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) {