Date: Fri, 15 Jan 1999 03:19:14 +0000 (GMT) From: George Foot To: djgpp AT delorie DOT com Subject: Re: How do I use fflush ? In-Reply-To: <19990115023752.3874.rocketmail@send204.yahoomail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Thu, 14 Jan 1999, Ben Sashe wrote: > Dear Sir, > I am not able to use fflush(I am new to programming). Please say what you wrote, what you expected to happen and what actually did happen. Are you trying to use fflush on an input stream? If so, remember that it's an undefined operation -- fflush only affects output streams in a defined (by the standard) way. So the effect of something like `fflush (stdin);' is not defined by the standard; while some C libraries clear characters from the stream, djgpp's does not. On an output stream, `fflush' sends all buffered characters immediately. -- george DOT foot AT merton DOT oxford DOT ac DOT uk ko cilre fi la lojban -- http://xiron.pc.helsinki.fi/lojban/