Mail Archives: djgpp/1999/01/14/22:19:23
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/
- Raw text -