Utils: added function to get radix 10 string length of signed integer.

This commit is contained in:
antirez
2015-02-27 15:20:58 +01:00
parent 7e6b4ea67b
commit c95507881a
2 changed files with 14 additions and 0 deletions

View File

@ -35,6 +35,8 @@
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);
uint32_t digits10(uint64_t v);
uint32_t sdigits10(int64_t v);
int ll2string(char *s, size_t len, long long value);
int string2ll(const char *s, size_t slen, long long *value);
int string2l(const char *s, size_t slen, long *value);