Mercurial > hg > th-libs
comparison th_string.c @ 221:81b4688f684b
Oops, broken function. Fixed.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 15 Feb 2016 10:13:08 +0200 |
parents | 099a1a156fd7 |
children | 723a69185102 |
comparison
equal
deleted
inserted
replaced
220:099a1a156fd7 | 221:81b4688f684b |
---|---|
51 | 51 |
52 /* Like strdup, but trims whitespace from the string | 52 /* Like strdup, but trims whitespace from the string |
53 * according to specified flags. See TH_TRIM_* in | 53 * according to specified flags. See TH_TRIM_* in |
54 * th_string.h | 54 * th_string.h |
55 */ | 55 */ |
56 static inline th_strdup_trim_do(const char src, size_t len, const int flags) | 56 static inline char * th_strdup_trim_do(const char *src, size_t len, const int flags) |
57 { | 57 { |
58 char *res; | 58 char *res; |
59 size_t start, end; | 59 size_t start, end; |
60 | 60 |
61 if (len == 0) | 61 if (len == 0) |