diff th_string.h @ 241:a1ee6c76ca1c

Functions for growing a string buffer when needed.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 20 Apr 2011 18:47:22 +0300
parents 3896861974ac
children 51319822ae92
line wrap: on
line diff
--- a/th_string.h	Wed Apr 20 15:46:42 2011 +0300
+++ b/th_string.h	Wed Apr 20 18:47:22 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