home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-dist
/
indent-1.9.1-src.tgz
/
tar.out
/
fsf
/
indent
/
memcpy.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-09-28
|
392b
|
21 lines
/* Copyright (c) 1994, Joseph Arceneaux */
/* 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