Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
|
Go to the source code of this file.
Functions | |
char * | strdup (const char *str) |
Duplicate the passed in string str. More... | |
char* strdup | ( | const char * | str | ) |
Duplicate the passed in string str.
Returns a pointer to a new string which is a duplicate of the string str. Memory for the new string is obtained with malloc(3), and can be freed with free(3).
str | a pointer to a string to duplicate |
Definition at line 42 of file strdup.c.