diff options
author | antirez <antirez@gmail.com> | 2015-02-27 15:20:58 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2015-02-27 15:22:10 +0100 |
commit | c95507881acb0d8cdaf7e0a29f445ee2fdaa2c80 (patch) | |
tree | 56ae71dbb357b829326ea65c0a5a3ebd0d1a5e3b /src/util.h | |
parent | 7e6b4ea67bf38595ae25bdd6aa253702a1fd5509 (diff) | |
download | redis-c95507881acb0d8cdaf7e0a29f445ee2fdaa2c80.tar.gz |
Utils: added function to get radix 10 string length of signed integer.
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h index 666042c9b..544b9b8bd 100644 --- a/src/util.h +++ b/src/util.h @@ -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); |