diff options
author | sanine <sanine.not@pm.me> | 2023-01-04 19:12:53 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2023-01-04 19:12:53 -0600 |
commit | 1b62e92bcc18762a8e4a2e9e4dc322705bfb7eec (patch) | |
tree | c20a207b2add59dcbe38b5f6c5ad7ea4ae8a481f /src/util/util.h | |
parent | dcb7a5389717c33f7fcfa67f5e2048cacc55d820 (diff) |
add kai_text_to_longs()
Diffstat (limited to 'src/util/util.h')
-rw-r--r-- | src/util/util.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util/util.h b/src/util/util.h index d6cdd20..0b6bc15 100644 --- a/src/util/util.h +++ b/src/util/util.h @@ -29,6 +29,9 @@ void * kai_expand_array(void **array, size_t *len, size_t element_size); * in the string to convert, this is the same as `count`. If not, it is the number of * actual elements present in the string. */ -int kai_text_to_reals(ka_real_t *dest, const char *str, size_t count); +size_t kai_text_to_reals(ka_real_t *dest, const char *str, size_t count); + + +size_t kai_text_to_longs(long *dest, const char *str, size_t count); #endif |