summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2011-04-27 13:24:52 +0200
committerPieter Noordhuis <pcnoordhuis@gmail.com>2011-05-05 16:26:50 +0200
commit5d08193126df54405dae3073c62b7c19ae03d1a4 (patch)
tree48ef7073be416c087df2c4dd36796b17799707a6 /src/util.h
parentaf0e51f2e15bc9c63d11229e64ce7884e1a1402a (diff)
downloadredis-5d08193126df54405dae3073c62b7c19ae03d1a4.tar.gz
Tests for string2ll; move isObject* to object.c
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
new file mode 100644
index 000000000..b897a89e7
--- /dev/null
+++ b/src/util.h
@@ -0,0 +1,12 @@
+#ifndef __REDIS_UTIL_H
+#define __REDIS_UTIL_H
+
+int stringmatchlen(const char *p, int plen, const char *s, int slen, int nocase);
+int stringmatch(const char *p, const char *s, int nocase);
+long long memtoll(const char *p, int *err);
+int ll2string(char *s, size_t len, long long value);
+int string2ll(char *s, size_t slen, long long *value);
+int string2l(char *s, size_t slen, long *value);
+int d2string(char *buf, size_t len, double value);
+
+#endif