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

Message-ID: <3AA6E632.C521F4C1@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>
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

- Raw text -


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