home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
unix
/
volume5
/
smallc
/
part3
/
lib
/
strcpy.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
|
1986-11-30
|
190 b
|
17 lines
#include <stdio.h>
/*
* Copy string s2 to s1. s1 must be large enough.
* return s1
*/
strcpy(s1, s2)
char *s1, *s2;
{
char *os1;
os1 = s1;
while (*s1++ = *s2++)
;
return(os1);
}