|
From: Kohn E. D. <em...@cs...> - 2002-05-01 23:21:14
|
On Wed, 1 May 2002, Hartmut Birr wrote: > I think, getchar can not use getc for getting one character. Getchar must > set the console to non line buffered mode, wait for one character and read > it, and restore the old console mode. > > - Hartmut getchar(); should be equivalent to getc(stdin); It is getc() that has to behave this way if its parameter is stdin and is redirected to the keyboard. Emil |