MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / stringFromLongLong

Function stringFromLongLong

src/dict.cpp:1575–1585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1573}
1574
1575char *stringFromLongLong(long long value) {
1576 char buf[32];
1577 int len;
1578 char *s;
1579
1580 len = snprintf(buf,sizeof(buf),"%lld",value);
1581 s = zmalloc(len+1);
1582 memcpy(s, buf, len);
1583 s[len] = '\0';
1584 return s;
1585}
1586
1587dictType BenchmarkDictType = {
1588 hashCallback,

Callers 1

dictTestFunction · 0.85

Calls 1

zmallocFunction · 0.85

Tested by

no test coverage detected