Table of Contents
Previous topic Next topic
C COMPILER LIBRARY FUNCTION REFERENCE->Detailed Descriptions->kbhit()
|char * _kbhit(void);||Check for an unread input character|
This function checks the console for an unread character. The function is implementation specific and will need to be created to suit your target system. The version included in the library checks for a character received from the 8051 serial port. See Console I/O which describes the use of this specific implementation.
The function returns a non-zero value if a character is present, otherwise it returns zero.