home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 6
/
Aminet 6 - June 1995.iso
/
Aminet
/
dev
/
gcc
/
libnixV0_8.lha
/
gnu
/
libnix-sources.lha
/
sources
/
nix
/
extra
/
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
|
1994-12-12
|
176 b
|
13 lines
#include <string.h>
#include <stdlib.h>
#include <strsup.h>
char *strdup(const char *s)
{
char *s1;
if ((s1=malloc(strlen_plus_one(s))))
strcpy(s1,s);
return s1;
}