strdup - return duplicate copy of string
char *strdup (string)
Strdup returns a pointer to a duplicate copy of the string pointed to by string. Strdup allocates space for the copy with malloc(3).
Strdup returns NULL if it cannot allocate space for a copy of string.
Strdup is present only on systems that do not already have it in their standard C library.