comparison 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
comparison
equal deleted inserted replaced
285:b765f15f9895 287:eb74097b73f5
65 BOOL th_strcasematch(const char *, const char *); 65 BOOL th_strcasematch(const char *, const char *);
66 66
67 int th_get_hex_triplet(const char *); 67 int th_get_hex_triplet(const char *);
68 68
69 69
70 void th_vputch(char **buf, size_t *bufsize, size_t *len, const char ch); 70 BOOL th_vputch(char **buf, size_t *bufsize, size_t *len, const char ch);
71 void th_vputs(char **buf, size_t *bufsize, size_t *len, const char *str); 71 BOOL th_vputs(char **buf, size_t *bufsize, size_t *len, const char *str);
72 72
73 #define TH_BUFGROW (32) 73 #define TH_BUFGROW (32)
74 74
75 #ifdef __cplusplus 75 #ifdef __cplusplus
76 } 76 }