diff th_string.h @ 21:1f7d8693fda8

Add functions for growing a string/buffer and concatenating characters and/or other strings to it.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 21 Apr 2011 01:48:42 +0300
parents e5e6370217ef
children f7a509f96a5d
line wrap: on
line diff
--- a/th_string.h	Wed Apr 20 14:57:53 2011 +0300
+++ b/th_string.h	Thu Apr 21 01:48:42 2011 +0300
@@ -63,6 +63,12 @@
 
 int     th_get_hex_triplet(const char *);
 
+
+void    th_vputch(char **buf, size_t *bufsize, size_t *len, const char ch);
+void    th_vputs(char **buf, size_t *bufsize, size_t *len, const char *str);
+
+#define TH_BUFGROW       (32)
+
 #ifdef __cplusplus
 }
 #endif