|
|
|
On a PC, the function getch() operates very differently from getc() and getchar(). This is partly due to the fact that the PC can easily determine when an individual key on the keyboard has been pressed. Other systems, such as the DEC and VAX C, do not allow the hardware to trap individual keystrokes. These systems typically echo the input character and require the pressing of a carriage return, with the carriage return character not seen by the program unless no other characters have been entered. Under such circumstances, the carriage return returns a null character or a decimal zero. Additionally, the function keys are not available, and if they are pressed, they produce unreliable results.
|
|
|