|
Last change
on this file since 9519422 was 7258c6a, checked in by Thomas Lopatic <thomas@…>, 8 years ago |
|
Use standard integer types.
|
-
Property mode
set to
100644
|
|
File size:
416 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 | void *memcpy(void *vp1, void *vp2, int16_t n)
|
|---|
| 12 | {
|
|---|
| 13 | int8_t *cp1 = vp1;
|
|---|
| 14 | int8_t *cp2 = vp2;
|
|---|
| 15 |
|
|---|
| 16 | while (--n >= 0)
|
|---|
| 17 | *cp1++ = *cp2++;
|
|---|
| 18 |
|
|---|
| 19 | return(vp1);
|
|---|
| 20 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.