home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
lclint.zip
/
lclint-2_3h-os2-bin.zip
/
test
/
tests2.2a
/
duff.c
< prev
next >
Wrap
C/C++ Source or Header
|
1997-09-03
|
332b
|
18 lines
void copy ( to, from, count )
char* to;
char* from;
{
int n=(count+7)/8;
switch (count%8) do {
case 0: *to = *from++;
case 7: *to = *from++;
case 6: *to = *from++;
case 5: *to = *from++;
case 4: *to = *from++;
case 3: *to = *from++;
case 2: *to = *from++;
case 1: *to = *from++;
} while (--n>0);
}