|
From: KJK::Hyperion <no...@li...> - 2002-05-02 21:36:43
|
At 10.29 02/05/2002, you wrote: >Ok the rational behind this fix: >- the console cannot be in line mode to get a single char (and return >immediately after, which is what getchar requires) not sure. Stdio FILE objects are supposed, AFAIK, to maintain their internal buffer, exactly to avoid the overhead of a system call to read a single character >- the console mode setting shouldn't be done in getc() or any lower >because they work with any kind of file (getchar is specific towards stdin) it shouldn't be done anywhere, mainly for thread safety |