Crossware

Table of Contents        Previous topic       Next topic       

C COMPILER LIBRARY FUNCTION REFERENCE->Detailed Descriptions->kbhit()

Summary

#include <conio.h>

    
char * _kbhit(void);Check for an unread input character

Description

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.


Return Value

The function returns a non-zero value if a character is present, otherwise it returns zero.