Mercurial > hg > th-libs
diff th_string.h @ 81:c9c0541bed90
Add th_strndup().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 04 May 2013 03:38:55 +0300 |
parents | 12f1af4ffc6d |
children | b6f3486c4d6c |
line wrap: on
line diff
--- a/th_string.h Sat May 04 03:38:41 2013 +0300 +++ b/th_string.h Sat May 04 03:38:55 2013 +0300 @@ -43,6 +43,8 @@ /* Normal NUL-terminated string functions */ char *th_strdup(const char *); +char *th_strndup(const char *, const size_t); + int th_strcasecmp(const char *, const char *); int th_strncasecmp(const char *, const char *, size_t); void th_strip_ctrlchars(char *);