home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
387b.lha
/
dice_v2.02
/
lib
/
string
/
strdup.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1990-05-30
|
198 b
|
21 lines
/*
* STRDUP.C
*/
#include <string.h>
#include <stdlib.h>
char *
strdup(s)
const char *s;
{
int len = strlen(s);
char *d;
if (d = malloc(len + 1))
strcpy(d, s);
return(d);
}