source:
buchla-68k/libsm/memcpyw.c@
5c13d64
Last change on this file since 5c13d64 was 5c13d64, checked in by , 7 years ago | |
---|---|
|
|
File size: 440 bytes |
Rev | Line | |
---|---|---|
[f40a309] | 1 | /* |
2 | ============================================================================= | |
3 | memcpyw.c -- copy words | |
4 | Version 2 -- 1987-06-15 -- D.N. Lynx Crowe | |
5 | ||
[5c13d64] | 6 | Copy vp2 to vp1, always copy n words. |
7 | Return pointer to vp1. | |
[f40a309] | 8 | ============================================================================= |
9 | */ | |
10 | ||
[5c13d64] | 11 | void *memcpyw(void *vp1, void *vp2, int n) |
[f40a309] | 12 | { |
[5c13d64] | 13 | short *sp1 = vp1; |
14 | short *sp2 = vp2; | |
[f40a309] | 15 | |
[5c13d64] | 16 | while (--n >= 0) |
17 | *sp1++ = *sp2++; | |
18 | ||
19 | return(vp1); | |
[f40a309] | 20 | } |
Note:
See TracBrowser
for help on using the repository browser.