Mercurial > hg > nnchat
diff th_string.h @ 287:eb74097b73f5
Make th_vputch() and th_vputs() return a boolean value for success and failure respectively. Also fix a grave bug in th_growbuf().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 11 Jun 2011 01:09:27 +0300 |
parents | 3dc86d8eb0a9 |
children | fae4651d37bc |
line wrap: on
line diff
--- a/th_string.h Fri Jun 10 23:43:36 2011 +0300 +++ b/th_string.h Sat Jun 11 01:09:27 2011 +0300 @@ -67,8 +67,8 @@ 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); +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); #define TH_BUFGROW (32)