Mercurial > hg > octave-kai > gnulib-hg
view lib/memcpy.c @ 627:27b627bebea0
copied from id-utils-3.0k
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sun, 23 Jun 1996 17:58:15 +0000 |
parents | 1da40035bfa2 |
children | fd8fe79702e0 |
line wrap: on
line source
/* Copy LEN bytes starting at SRCADDR to DESTADDR. Result undefined if the source overlaps with the destination. Return DESTADDR. */ char * memcpy (destaddr, srcaddr, len) char *destaddr; const char *srcaddr; int len; { char *dest = destaddr; while (len-- > 0) *destaddr++ = *srcaddr++; return dest; }