comparison th_string.h @ 479:77ad030e82c9

Add th_get_int() helper function.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 27 Nov 2018 07:48:58 +0200
parents 85fa3d333556
children e4ce60239d16
comparison
equal deleted inserted replaced
478:b1e80180818a 479:77ad030e82c9
155 BOOL th_strmatch(const char *haystack, const char *pattern); 155 BOOL th_strmatch(const char *haystack, const char *pattern);
156 BOOL th_strcasematch(const char *haystack, const char *pattern); 156 BOOL th_strcasematch(const char *haystack, const char *pattern);
157 157
158 int th_get_hex_triplet(const char *str); 158 int th_get_hex_triplet(const char *str);
159 BOOL th_get_boolean(const char *str, BOOL *value); 159 BOOL th_get_boolean(const char *str, BOOL *value);
160 BOOL th_get_int(const char *str, unsigned int *value, BOOL *neg);
160 161
161 void th_print_wrap(FILE *fh, const char *str, int spad, int rpad, int width); 162 void th_print_wrap(FILE *fh, const char *str, int spad, int rpad, int width);
162 163
163 164
164 #ifdef __cplusplus 165 #ifdef __cplusplus