Mercurial > hg > th-libs
comparison 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 |
comparison
equal
deleted
inserted
replaced
80:12f1af4ffc6d | 81:c9c0541bed90 |
---|---|
41 | 41 |
42 | 42 |
43 /* Normal NUL-terminated string functions | 43 /* Normal NUL-terminated string functions |
44 */ | 44 */ |
45 char *th_strdup(const char *); | 45 char *th_strdup(const char *); |
46 char *th_strndup(const char *, const size_t); | |
47 | |
46 int th_strcasecmp(const char *, const char *); | 48 int th_strcasecmp(const char *, const char *); |
47 int th_strncasecmp(const char *, const char *, size_t); | 49 int th_strncasecmp(const char *, const char *, size_t); |
48 void th_strip_ctrlchars(char *); | 50 void th_strip_ctrlchars(char *); |
49 | 51 |
50 char *th_strdup_vprintf(const char *, va_list); | 52 char *th_strdup_vprintf(const char *, va_list); |