Mail Archives: djgpp/1997/11/12/07:17:11
On Wed, 12 Nov 1997, John M. Aldrich wrote:
> fflush() does NOT clear the input buffer. That it does so under
> Borland, et. al. is an example of these compilers' noncompliance with
> the ANSI standard.
More precisely, ANSI says that the effect of `fflush' on an input
stream is ``undefined''. So it's not the compilers that make `fflush'
do something in this case which are noncompliant, it's a program which
uses `fflush' on an input stream and expects some specific effect.
- Raw text -