summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorBrad Fitzpatrick <brad@danga.com>2008-10-14 21:03:05 -0700
committerDustin Sallings <dustin@spy.net>2009-03-19 01:52:53 -0700
commit420aa2d992093b78c1bba6cbb3577d5b53a19ec8 (patch)
treeb465c4262e27303f5178350f1a7d8239b864c1eb /util.h
parent9791d32edaa99d2cb3825c2e526b066a6cbe2e4c (diff)
downloadmemcached-420aa2d992093b78c1bba6cbb3577d5b53a19ec8.tar.gz
start of the incr fix, rearranges a bunch, adds util, tests, etc
Diffstat (limited to 'util.h')
-rw-r--r--util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/util.h b/util.h
new file mode 100644
index 0000000..24b0da6
--- /dev/null
+++ b/util.h
@@ -0,0 +1,8 @@
+/*
+ * str a NULL-terminated base decimal 10 unsigned integer
+ * out out parameter, if conversion succeeded
+ *
+ * returns true if conversion succeeded.
+ */
+bool safe_strtoull(const char *str, unsigned long long *out);
+