Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/F-Stack/f-stack
/ zstrdup
Function
zstrdup
app/redis-6.2.6/src/zmalloc.c:320–326 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
318
}
319
320
char *zstrdup(const char *s) {
321
size_t l = strlen(s)+1;
322
char *p = zmalloc(l);
323
324
memcpy(p,s,l);
325
return p;
326
}
327
328
size_t zmalloc_used_memory(void) {
329
size_t um;
Callers
15
loadServerConfigFromString
Function · 0.85
stringConfigInit
Function · 0.85
stringConfigSet
Function · 0.85
syncWithMaster
Function · 0.85
failoverCommand
Function · 0.85
updateFailoverStatus
Function · 0.85
handleSSLReturnCode
Function · 0.85
sparklineSequenceAddSample
Function · 0.85
initServerConfig
Function · 0.85
restartServer
Function · 0.85
createPidFile
Function · 0.85
changeBindAddr
Function · 0.85
Calls
2
zmalloc
Function · 0.85
memcpy
Function · 0.50
Tested by
no test coverage detected