www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/03/07/21:06:42

Message-ID: <3AA6E696.E23A07D8@user.rose.com>
From: April <awhite AT user DOT rose DOT com>
X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {TLC;RETAIL} (Win95; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: question
References: <JA8AAAAABrrLhgABYQABlXwdgctU AT magnet DOT mt> <3AA6E632 DOT C521F4C1 AT user DOT rose DOT com>
Lines: 18
Date: Wed, 07 Mar 2001 20:55:34 -0500
NNTP-Posting-Host: 205.189.215.24
X-Trace: client 984016225 205.189.215.24 (Wed, 07 Mar 2001 20:50:25 EST)
NNTP-Posting-Date: Wed, 07 Mar 2001 20:50:25 EST
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

corrected version:


> Penza Kenneth at MITTS wrote:
>
> >         I am experiencing problems when using the fflush function.
>
> You source line is: fflush(stdin);/*Flush input stream for another input*/
>
> I am not a std c expert, but the info file states 'Note that `fflush' has no
> effect for streams opened for reading only', and my K&R states 'on an input
> stream, the effect is undefined'
>
> if you only want to skip the rest of the stdin, might not gets() be more useful
> and generic?
>
> April

- Raw text -


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