Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Snapchat/KeyDB
/ zstrdup
Function
zstrdup
src/zmalloc.cpp:332–338 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
330
}
331
332
char *zstrdup(const char *s) {
333
size_t l = strlen(s)+1;
334
char *p = (char*)zmalloc(l, MALLOC_SHARED);
335
336
memcpy(p,s,l);
337
return p;
338
}
339
340
size_t zmalloc_used_memory(void) {
341
size_t um;
Callers
15
latencyAddSample
Function · 0.85
clusterCron
Function · 0.85
syncWithMaster
Function · 0.85
failoverCommand
Function · 0.85
updateMasterAuth
Function · 0.85
updateFailoverStatus
Function · 0.85
initMasterInfo
Function · 0.85
initServerConfig
Function · 0.85
restartServer
Function · 0.85
createPidFile
Function · 0.85
changeBindAddr
Function · 0.85
main
Function · 0.85
Calls
1
zmalloc
Function · 0.85
Tested by
no test coverage detected