Mercurial > hg > th-libs
comparison th_string.h @ 497:ff3ebe22f6c5
Change int th_get_hex_triplet(const char *str) API to
BOOL th_get_hex_triplet(const char *str, unsigned int *value).
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 25 Dec 2019 11:00:51 +0200 |
parents | 702c64a6c570 |
children | 59b8f15c5334 |
comparison
equal
deleted
inserted
replaced
496:8c837a33cfb6 | 497:ff3ebe22f6c5 |
---|---|
156 const char *th_findseporspace(const char *, size_t *, char); | 156 const char *th_findseporspace(const char *, size_t *, char); |
157 | 157 |
158 BOOL th_strmatch(const char *haystack, const char *pattern); | 158 BOOL th_strmatch(const char *haystack, const char *pattern); |
159 BOOL th_strcasematch(const char *haystack, const char *pattern); | 159 BOOL th_strcasematch(const char *haystack, const char *pattern); |
160 | 160 |
161 int th_get_hex_triplet(const char *str); | 161 BOOL th_get_hex_triplet(const char *str, unsigned int *value); |
162 BOOL th_get_boolean(const char *str, BOOL *value); | 162 BOOL th_get_boolean(const char *str, BOOL *value); |
163 BOOL th_get_int(const char *str, unsigned int *value, BOOL *neg); | 163 BOOL th_get_int(const char *str, unsigned int *value, BOOL *neg); |
164 | 164 |
165 void th_print_wrap(FILE *fh, const char *str, int spad, int rpad, int width); | 165 void th_print_wrap(FILE *fh, const char *str, int spad, int rpad, int width); |
166 | 166 |