Mail Archives: djgpp/1997/12/08/21:12:03
At 03:50 12/8/1997 +0200, Eli Zaretskii wrote:
>
>On Fri, 5 Dec 1997, Nate Eldredge wrote:
>
>> Actually, he's right: the effect of that code is to read one character from
>> DOS standard input. This may be a problem, since on other compilers (at
>> least Turbo C) `getch' reads directly from the keyboard.
>
>I have just checked, and in Borland 3.1, `getch' reads from stdin as
>well. Are you sure Turbo C is different? (Try redirecting stdin and
>see if `getch' reads a character or waits for keyboard input.)
No, you're right. Silly me, I believed Turbo C's documentation. :)
Nate Eldredge
eldredge AT ap DOT net
- Raw text -