cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/12/07:17:11

Date: Wed, 12 Nov 1997 14:15:59 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "John M. Aldrich" <fighteer AT cs DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: problem with gets
In-Reply-To: <346977F4.3EAD@cs.com>
Message-ID: <Pine.SUN.3.91.971112141535.20379T-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019