home *** CD-ROM | disk | FTP | other *** search
- STRDUP(3) Library Functions STRDUP(3)
-
-
-
- NAME
- strdup - duplicate a given string
-
- SYNOPSIS
- #include <edlib.h>
-
- char *strdup(str)
- char *str;
-
- DESCRIPTION
- Strdup allocates enough memory to hold the given string, and
- copies the string to the new space. It then returns a pointer
- to the new string.
-
- DIAGNOSTICS
- If there is not enough memory for a new string, then strdup
- returns a null and sets the external variable errno to ENOMEM.
-
- AUTHOR
- Edwin Hoogerbeets 20/03/89
-
- SEE ALSO
- strcmp(3)
-
-
-
-