source: buchla-68k/orig/CLIBRARY/MEMCPY.C@ 6099cac

Last change on this file since 6099cac was 3ae31e9, checked in by Thomas Lopatic <thomas@…>, 8 years ago

Imported original source code.

  • Property mode set to 100755
File size: 472 bytes
Line 
1/*
2 =============================================================================
3 memcpy.c -- copy memory
4 Version 1 -- 1987-06-12
5
6 Copy s2 to s1, always copy n bytes.
7 Return s1.
8 =============================================================================
9 */
10
11char *
12memcpy(s1, s2, n)
13register char *s1, *s2;
14register int n;
15{
16 register char *os1 = s1;
17
18 while (--n >= 0)
19 *s1++ = *s2++;
20 return (os1);
21}
Note: See TracBrowser for help on using the repository browser.