STRDUP(3) Library Routines STRDUP(3)
strdup - save a copy of a string
char * strdup (const char *str);
The strdup function allocates sufficient memory for a copy of the
string str, does the copy, and returns a pointer to it. The pointer
may subsequently be used as an argument to the function free(3).
If insufficient memory is available, NULL is returned.
The strdup function first appeared in 4.4BSD.
GNO 27 January 1997 STRDUP(3)
Man(1) output converted with