MCPcopy 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
609static char *
610strdup(char const *str)
611{
612 char *result = malloc(strlen(str) + 1);
613 return result ? strcpy(result, str) : result;
614}
615#endif
616

Callers 1

xstrdupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected