comparison th_string.h @ 107:f6e0a32b5906

Remove old string growbuf code.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 21 Jun 2014 20:01:36 +0300
parents eca8ffe4e260
children aa2d608fb3f3
comparison
equal deleted inserted replaced
106:4bba5be9d3bf 107:f6e0a32b5906
77 BOOL th_strmatch(const char *, const char *); 77 BOOL th_strmatch(const char *, const char *);
78 BOOL th_strcasematch(const char *, const char *); 78 BOOL th_strcasematch(const char *, const char *);
79 79
80 int th_get_hex_triplet(const char *); 80 int th_get_hex_triplet(const char *);
81 81
82 /* Growing string buffer
83 */
84 BOOL th_growbuf(char **buf, size_t *bufsize, size_t *len, size_t grow);
85 BOOL th_vputch(char **buf, size_t *bufsize, size_t *len, const char ch);
86 BOOL th_vputs(char **buf, size_t *bufsize, size_t *len, const char *str);
87
88 #define TH_BUFGROW (32)
89 82
90 #ifdef __cplusplus 83 #ifdef __cplusplus
91 } 84 }
92 #endif 85 #endif
93 #endif /* TH_STRING_H */ 86 #endif /* TH_STRING_H */