From 63ba0e14d0aed8d2d82c10d0b4706f204927da0c Mon Sep 17 00:00:00 2001 From: Dustin Sallings Date: Wed, 18 Mar 2009 19:36:52 -0700 Subject: Added safe_strtou?l functions. Some of the tests for this were written but commented out because they fail on some platforms. --- util.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util.h') diff --git a/util.h b/util.h index b5a043f..9af886d 100644 --- a/util.h +++ b/util.h @@ -9,3 +9,5 @@ */ bool safe_strtoull(const char *str, uint64_t *out); bool safe_strtoll(const char *str, int64_t *out); +bool safe_strtoul(const char *str, uint32_t *out); +bool safe_strtol(const char *str, int32_t *out); -- cgit v1.2.1