strdup

Example: strdup String Manipulation Functions

Duplicates a string.

char *strdup( const char *string); 

string The string that is duplicated.

Return Values

strdup returns the duplicated string.