Mercurial > hg > th-libs
diff th_string.h @ 674:dfabc7eef3dd
Add new functions th_split_string() and th_join_string().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 25 Feb 2020 05:16:42 +0200 |
parents | 284d5b789b7c |
children | 83a48de05fe9 |
line wrap: on
line diff
--- a/th_string.h Mon Feb 24 16:11:38 2020 +0200 +++ b/th_string.h Tue Feb 25 05:16:42 2020 +0200 @@ -142,6 +142,9 @@ int th_pstr_cpy(th_char_t **pdst, const th_char_t *src); int th_pstr_cat(th_char_t **pdst, const th_char_t *src); +int th_split_string(const char *str, char ***elems, size_t *nelems, const char *sep); +int th_join_string(char **str, char **elems, const size_t nelems, const char *sep); + /* Internal printf() implementation. NOTICE! This API may be unstable. */