changeset 35:e9a3fe655dd9

Make th_growbuf() public.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 23 Jun 2011 11:08:35 +0300
parents 8dac45860fc7
children 760788e21699
files th_string.c th_string.h
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/th_string.c	Thu Jun 23 11:07:16 2011 +0300
+++ b/th_string.c	Thu Jun 23 11:08:35 2011 +0300
@@ -460,7 +460,7 @@
 }
 
 
-static BOOL th_growbuf(char **buf, size_t *bufsize, size_t *len, size_t grow)
+BOOL th_growbuf(char **buf, size_t *bufsize, size_t *len, size_t grow)
 {
     assert(buf != NULL);
     assert(bufsize != NULL);
--- a/th_string.h	Thu Jun 23 11:07:16 2011 +0300
+++ b/th_string.h	Thu Jun 23 11:08:35 2011 +0300
@@ -67,6 +67,7 @@
 int     th_get_hex_triplet(const char *);
 
 
+BOOL    th_growbuf(char **buf, size_t *bufsize, size_t *len, size_t grow);
 BOOL    th_vputch(char **buf, size_t *bufsize, size_t *len, const char ch);
 BOOL    th_vputs(char **buf, size_t *bufsize, size_t *len, const char *str);