Tests for string2ll; move isObject* to object.c

This commit is contained in:
Pieter Noordhuis
2011-04-27 13:24:52 +02:00
parent af0e51f2e1
commit 5d08193126
5 changed files with 150 additions and 50 deletions

12
src/util.h Normal file
View File

@ -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