Questions relating to the use of the DOS getch() function
getch()
is defined in <conio.h>
, a header file used mostly by MS-DOS compilers to provide console input/output.
This function is provided on Microsoft platforms, but is not in the C standard library, nor in POSIX.
It is similar to the standard library getchar()
, but disables terminal echo of the character that is returned.