Message-ID: <3AA6E632.C521F4C1@user.rose.com> From: April 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: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 15 Date: Wed, 07 Mar 2001 20:53:54 -0500 NNTP-Posting-Host: 205.189.215.24 X-Trace: client 984016129 205.189.215.24 (Wed, 07 Mar 2001 20:48:49 EST) NNTP-Posting-Date: Wed, 07 Mar 2001 20:48:49 EST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Penza Kenneth at MITTS wrote: > I am experiencing problems when using the fflush function. You source line is: toupper(fgetc(stdin)) 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