Date: Mon, 8 Sep 1997 11:41:42 +0300 (IDT) From: Eli Zaretskii To: Tim cc: djgpp AT delorie DOT com Subject: Re: fflush In-Reply-To: <5upepk$cto@nuscc.nus.sg> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On 5 Sep 1997, Tim wrote: > ch = getchar(); > fflush(stdin); > > however, in djgpp, fflush doesn't work, so the next line reads in the > carriage return and utterly ruins my work. > > Why doesn't fflush work here? fflush is only defined for output streams. You should not rely on it doing anything for input streams.