MCPcopy Create free account
hub / github.com/F-Stack/f-stack / stringFromLongLong

Function stringFromLongLong

app/redis-6.2.6/src/dict.c:1200–1210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1198}
1199
1200char *stringFromLongLong(long long value) {
1201 char buf[32];
1202 int len;
1203 char *s;
1204
1205 len = sprintf(buf,"%lld",value);
1206 s = zmalloc(len+1);
1207 memcpy(s, buf, len);
1208 s[len] = '\0';
1209 return s;
1210}
1211
1212dictType BenchmarkDictType = {
1213 hashCallback,

Callers 1

dictTestFunction · 0.85

Calls 3

sprintfFunction · 0.85
zmallocFunction · 0.85
memcpyFunction · 0.50

Tested by

no test coverage detected