Table of Contents Previous topic Next topic
C COMPILER LIBRARY FUNCTION REFERENCE->Detailed Descriptions->getch()
int getch(void); Read a character from console
This function gets a character from the console. The routine is implementation specific and will need to be created to suit your target system. The version included in the library reads characters from the 8051 serial port. See Console I/O which describes the use of this specific implementation.
The return value is the character read. There is no error return.