Utility Functions and C Language Reference > C Language Reference > Alphabetical List of Functions > strdup

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.