Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/eggert/tz
/ strdup
Function
strdup
zic.c:608–613 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
606
}
607
608
#if !HAVE_STRDUP
609
static char *
610
strdup(char const *str)
611
{
612
char *result = malloc(strlen(str) + 1);
613
return result ? strcpy(result, str) : result;
614
}
615
#endif
616
Callers
1
xstrdup
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected