diff options
author | Pierce Lopez <pierce.lopez@gmail.com> | 2020-05-10 13:20:02 -0400 |
---|---|---|
committer | Pierce Lopez <pierce.lopez@gmail.com> | 2020-05-10 13:38:12 -0400 |
commit | 003b58782b12798da3da8b952152988a88dfb532 (patch) | |
tree | cbff6cafc25a3407adc58b00a5b62d4469ba349b /json_util.h | |
parent | 26f080997d41cfdb17beab65e90c82217d0ac43b (diff) | |
download | json-c-003b58782b12798da3da8b952152988a88dfb532.tar.gz |
fix json_parse_uint64() usage of errno
introduced in #542
fixes #601
Diffstat (limited to 'json_util.h')
-rw-r--r-- | json_util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/json_util.h b/json_util.h index 2a4b6c1..7520f03 100644 --- a/json_util.h +++ b/json_util.h @@ -100,6 +100,7 @@ JSON_EXPORT int json_object_to_fd(int fd, struct json_object *obj, int flags); */ JSON_EXPORT const char *json_util_get_last_err(void); +/* these parsing helpers return zero on success */ JSON_EXPORT int json_parse_int64(const char *buf, int64_t *retval); JSON_EXPORT int json_parse_uint64(const char *buf, uint64_t *retval); JSON_EXPORT int json_parse_double(const char *buf, double *retval); |