source: trunk/third/enscript/compat/memcpy.c @ 17620

Revision 17620, 336 bytes checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r17619, which included commits to RCS files with non-trunk default branches.
Line 
1/* Copy LEN bytes starting at SRCADDR to DESTADDR.  Result undefined
2   if the source overlaps with the destination.
3   Return DESTADDR. */
4
5char *
6memcpy (destaddr, srcaddr, len)
7     char *destaddr;
8     const char *srcaddr;
9     int len;
10{
11  char *dest = destaddr;
12
13  while (len-- > 0)
14    *destaddr++ = *srcaddr++;
15  return dest;
16}
Note: See TracBrowser for help on using the repository browser.