home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
splint3s.zip
/
splint-3.0.1.6
/
test
/
tests2.2a
/
duff.c
< prev
next >
Wrap
C/C++ Source or Header
|
2000-06-12
|
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);
}