Mail Archives: djgpp/2000/04/10/06:52:54

From: buers AT gmx DOT de (Dieter Buerssner)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: fflush(stdin); /*doesn't seem to work in dos? */
Date: 10 Apr 2000 11:23:45 GMT
Lines: 14
Message-ID: <>
References: <6uhI4.60$ie DOT 11883 AT news DOT deakin DOT edu DOT au>
NNTP-Posting-Host: (
Mime-Version: 1.0
X-Trace: 955365825 7166535 (16 [17104])
X-Posting-Agent: Hamster/
User-Agent: Xnews/03.02.04
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

jacasey DOT invalid AT bajor DOT its DOT deakin DOT edu DOT au wrote:

>yeah as the subject says fflush(stdin); doesn't seem to work in dos or
>djggp, any thoughts?

Fflush() will only work for output streams (in Standard C). Why do
you need it for input streams? If it is, to discard unneeded characters
after scanf, a solution would be to use fgets and sscanf instead of

Regards, Dieter

- Raw text -

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