void Strobe_Lights(void) { static clock=0, // The functio's clock own clock "memory" so first_time=1; // the function can initialize on its // first call // Test whether this is the first time if (first_time) { first_time=0; // Reset first-time flag. // Do initializations. } // end if first time else // not first time i.e. nth time { // Test whether it's time to do action if (++clock==100) { change color register // Reset the clock clock=0; } // end if time to do action } // end else } end Strobe_Lights