Date: Wed, 12 Nov 1997 14:15:59 +0200 (IST) From: Eli Zaretskii To: "John M. Aldrich" cc: djgpp AT delorie DOT com Subject: Re: problem with gets In-Reply-To: <346977F4.3EAD@cs.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.