COHERENT manpages
This page displays the COHERENT manpage for strdup() [Duplicate a string].
List of available manpages
Index
strdup() -- String Function (libc) Duplicate a string #include <string.h> char *strdup(string) char *string; The string function strdup() duplicates the text to which string points. It calls malloc() to allocate memory for the duplicate, copies the string, and returns a pointer to the memory that holds the copy. If something goes wrong, it returns NULL. See Also libc, string.h Notes strdup() is not part of the ANSI Standard. Using it in your programs may limit their portability.