comparison 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
comparison
equal deleted inserted replaced
28:c47dcb8a4ffe 29:04cfdefc3253
62 BOOL th_strcasematch(const char *, const char *); 62 BOOL th_strcasematch(const char *, const char *);
63 63
64 int th_get_hex_triplet(const char *); 64 int th_get_hex_triplet(const char *);
65 65
66 66
67 void th_vputch(char **buf, size_t *bufsize, size_t *len, const char ch); 67 BOOL th_vputch(char **buf, size_t *bufsize, size_t *len, const char ch);
68 void th_vputs(char **buf, size_t *bufsize, size_t *len, const char *str); 68 BOOL th_vputs(char **buf, size_t *bufsize, size_t *len, const char *str);
69 69
70 #define TH_BUFGROW (32) 70 #define TH_BUFGROW (32)
71 71
72 #ifdef __cplusplus 72 #ifdef __cplusplus
73 } 73 }