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.
_ungetch
 Summary Example                         Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
     The _ungetch function pushes the character <c> back to the
     console, causing <c> to be the next character read by _getch or
     _getche. The _ungetch function fails if it is called more than
     once before the next read. The <c> argument cannot be EOF.
 
     Return Value
 
     The _ungetch function returns the character <c> if it is
     successful. A return value of EOF indicates an error.
                                    -♦-