diff th_string.h @ 220:099a1a156fd7

Implement th_strndup_trim() and factorize implementation of th_strdup_trim().
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 15 Feb 2016 10:11:10 +0200
parents 1ee46a95aa8c
children ca9cd98dbcff
line wrap: on
line diff
--- a/th_string.h	Mon Feb 15 06:05:42 2016 +0200
+++ b/th_string.h	Mon Feb 15 10:11:10 2016 +0200
@@ -53,6 +53,7 @@
 char    *th_strdup(const char *src);
 char    *th_strndup(const char *src, const size_t n);
 char    *th_strdup_trim(const char *, const int flags);
+char    *th_strndup_trim(const char *, const size_t n, const int flags);
 
 int     th_strcasecmp(const char *haystack, const char *needle);
 int     th_strncasecmp(const char *haystack, const char *needle, size_t n);