Mercurial > hg > th-libs
diff 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 |
line wrap: on
line diff
--- a/th_string.h Mon Jul 09 09:25:51 2018 +0300 +++ b/th_string.h Tue Nov 27 07:48:58 2018 +0200 @@ -157,6 +157,7 @@ int th_get_hex_triplet(const char *str); BOOL th_get_boolean(const char *str, BOOL *value); +BOOL th_get_int(const char *str, unsigned int *value, BOOL *neg); void th_print_wrap(FILE *fh, const char *str, int spad, int rpad, int width);