source: buchla-68k/libsm/memcpy.c@ 0170798

Last change on this file since 0170798 was b28a12e, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Zero redundant declarations.

  • Property mode set to 100644
File size: 434 bytes
Line 
1/*
2 =============================================================================
3 memcpy.c -- copy memory
4 Version 1 -- 1987-06-12
5
6 Copy vp2 to vp1, always copy n bytes.
7 Return vp1.
8 =============================================================================
9 */
10
11#include "ram.h"
12
13void *memcpy(void *vp1, void *vp2, int16_t n)
14{
15 int8_t *cp1 = vp1;
16 int8_t *cp2 = vp2;
17
18 while (--n >= 0)
19 *cp1++ = *cp2++;
20
21 return(vp1);
22}
Note: See TracBrowser for help on using the repository browser.