home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CDPD Public Domain Collection for CDTV 3
/
CDPDIII.bin
/
pd
/
programming
/
c
/
indent
/
memcpy.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-02-08
|
348b
|
19 lines
/* Copy LEN bytes starting at SRCADDR to DESTADDR. Result undefined
if the source overlaps with the destination.
Return DESTADDR. */
#ifdef USG
char *
memcpy (destaddr, srcaddr, len)
char *destaddr;
char *srcaddr;
int len;
{
char *dest = destaddr;
while (len-- > 0)
*destaddr++ = *srcaddr++;
return dest;
}
#endif