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: <8cskig.3vs6k6b.0@buerssner-17104.user.cis.dfn.de> References: <6uhI4.60$ie DOT 11883 AT news DOT deakin DOT edu DOT au> NNTP-Posting-Host: pec-107-139.tnt6.s2.uunet.de (149.225.107.139) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: fu-berlin.de 955365825 7166535 149.225.107.139 (16 [17104]) X-Posting-Agent: Hamster/1.3.13.0 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 scanf. -- Regards, Dieter