summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorDustin Sallings <dustin@spy.net>2009-03-18 19:36:52 -0700
committerDustin Sallings <dustin@spy.net>2009-03-19 01:52:54 -0700
commit63ba0e14d0aed8d2d82c10d0b4706f204927da0c (patch)
treed33cff43be95863ffaeb15f3dc88326db3678033 /util.h
parenta977b5563ab73b764c5b257d6ed1f182b5cd92ca (diff)
downloadmemcached-63ba0e14d0aed8d2d82c10d0b4706f204927da0c.tar.gz
Added safe_strtou?l functions.
Some of the tests for this were written but commented out because they fail on some platforms.
Diffstat (limited to 'util.h')
-rw-r--r--util.h2
1 files changed, 2 insertions, 0 deletions
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);