C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
_getch, _getche
 Summary Example                         Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
     The _getch function reads a single character from the console
     without echoing. The _getche function reads a single character
     from the console and echoes the character read. Neither function
     can be used to read CTRL+C.
 
     When reading a function key or cursor-movement key, the _getch and
     _getche functions must be called twice. The first call returns 0
     or 0xE0, and the second call returns the actual key code.
 
     Return Value
 
     Both the _getch and _getche functions return the character read.
     There is no error return.
                                    -♦-