Listing 3

   ticks = 0;
   while(ticks < stopcount)
       {
       ticks++;           /* ERROR: pre-incrementing

                         causes last data entry to
                         be written past the end of the
                         array before the while limit
                         is reached */
       if(dataready)
           {
           *(datapointer + ticks) = process_data();
           }
       }
/* End of File */