games/tetris/input.c
/*
 * Eat up any input (used at end of game).
 */
Eat up any input (used at end of game).
Eat up any input ( used at end of game ) .
void
eat_input()
{
	struct timeval tv;
	char c;
	do {
		tv.tv_sec = tv.tv_usec = 0;
	} while (rwait(&tv) && read(0, &c, 1) == 1);
}
void eat_input ( ) { struct timeval tv ; char c ; do { tv . tv_sec = tv . tv_usec = 0 ; } while ( rwait ( & tv ) && read ( 0 , & c , 1 ) == 1 ) ; }
Eat up any input (used at end of game).
Eat up any input ( used at end of game ) .