comparison th_datastruct.h @ 581:935ee9a9f631

Change 'ch' argument of th_strbuf_putch from char to uint8_t.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 11 Jan 2020 20:35:40 +0200
parents 414755d33796
children 98c8bd80f633
comparison
equal deleted inserted replaced
580:4d12924f9544 581:935ee9a9f631
78 78
79 79
80 /* Simple growing string buffer 80 /* Simple growing string buffer
81 */ 81 */
82 BOOL th_strbuf_grow(char **buf, size_t *bufsize, size_t *len, const size_t grow); 82 BOOL th_strbuf_grow(char **buf, size_t *bufsize, size_t *len, const size_t grow);
83 BOOL th_strbuf_putch(char **buf, size_t *bufsize, size_t *len, const char ch); 83 BOOL th_strbuf_putch(char **buf, size_t *bufsize, size_t *len, const uint8_t ch);
84 BOOL th_strbuf_putsn(char **buf, size_t *bufsize, size_t *len, const char *str, const size_t slen); 84 BOOL th_strbuf_putsn(char **buf, size_t *bufsize, size_t *len, const char *str, const size_t slen);
85 BOOL th_strbuf_puts(char **buf, size_t *bufsize, size_t *len, const char *str); 85 BOOL th_strbuf_puts(char **buf, size_t *bufsize, size_t *len, const char *str);
86 86
87 87
88 /* Growing byte buffer 88 /* Growing byte buffer