|
|
strdup - duplicate nul-terminated string
char* strdup(char* s)
strdup copies the nul-terminated string s to a new location provided by
malloc(3) and returns a pointer to the new copy. 0 is returned if mal-
loc(3) failed.
malloc(3), memdup(3)
STRDUP(3)