Check if there's a key waiting in the keyboard buffer.
unsigned char kbhit (void);
The function returns a value of zero if there is no character waiting to be read from the keyboard. It returns non zero otherwise.
- If the system does not support a keyboard buffer (most systems do), the function is rather useless.
- See also