INtime SDK Help

Push back the last character read from the console. There is a one-character buffer for the console. The next call to getch or getche will return the last character pushed before checking the keyboard buffer.

#include <conio.h>

int ungetch(int ch);


If an attempt is made to push a second character before a call to getch is made, this function returns EOF.

Return Values

The value of the character pushed, or EOF if the buffer is full.


Versions Defined in Include Link to
INtime 6.0 intime/rt/include/conio.h conio.h clib.lib
See Also