Mercurial > hg > th-libs
diff th_string.h @ 29:04cfdefc3253
th_vputs() and th_vputch() now return a boolean value, TRUE if operation was successful, FALSE if it failed. If result was FALSE, the buffer pointer may now be NULL.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 11 Jun 2011 05:03:58 +0300 |
parents | f7a509f96a5d |
children | 10d2dc143e4b |
line wrap: on
line diff
--- a/th_string.h Sat Jun 11 05:01:38 2011 +0300 +++ b/th_string.h Sat Jun 11 05:03:58 2011 +0300 @@ -64,8 +64,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)