2011-04-27 13:24:52 +02:00
|
|
|
#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);
|
2012-01-02 15:24:32 -08:00
|
|
|
int string2ll(const char *s, size_t slen, long long *value);
|
|
|
|
int string2l(const char *s, size_t slen, long *value);
|
2011-04-27 13:24:52 +02:00
|
|
|
int d2string(char *buf, size_t len, double value);
|
|
|
|
|
|
|
|
#endif
|