home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
200-299
/
ff218.lzh
/
EdLib
/
man
/
StrDup
< prev
next >
Wrap
Text File
|
1989-06-04
|
576b
|
31 lines
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)