home *** CD-ROM | disk | FTP | other *** search
- #include <conio.h>
- #include <funcs.h>
-
- void (*idle_func)(void) = ShowClock;
- /*-------------------- Get Idle Char ---------------------------*/
- /* */
- /* Description: Runs a functions until a key is pressed. */
- /* */
- /* Input: A void function that takes nothing as input. */
- /* */
- /* Output: The key pressed. */
- /* */
- /*--------------------------------------------------------------*/
-
-
- char GetIdleCh ( void )
- {
-
- while (!kbhit() )
- idle_func();
-
- return(getch());
-
- }
-
- void nothing(void)
- {
- };