home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_10_10
/
1010018b
< prev
next >
Wrap
Text File
|
1992-08-12
|
242b
|
16 lines
Listing 7 -- the file strcpy.c
/* strcpy function */
#include <string.h>
char *(strcpy)(char *s1, const char *s2)
{ /* copy char s2[] to s1[] */
char *s = s1;
for (s = s1; (*s++ = *s2++) != '\0'; )
;
return (s1);
}