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 >
C/C++ Source or Header  |  1997-09-03  |  332b  |  18 lines

  1. void copy ( to, from, count )
  2.      char* to;
  3.      char* from; 
  4. {
  5.   int n=(count+7)/8;
  6.   switch (count%8) do {
  7.   case 0: *to = *from++;
  8.   case 7: *to = *from++;
  9.   case 6: *to = *from++;
  10.   case 5: *to = *from++;
  11.   case 4: *to = *from++;
  12.   case 3: *to = *from++;
  13.   case 2: *to = *from++;
  14.   case 1: *to = *from++;
  15.   } while (--n>0);
  16. }
  17.  
  18.