[Wylug-help] C++ code

Roger Leigh roger at whinlatter.uklinux.net
28 Oct 2002 22:32:45 +0000


Philip Wyett <philipwyett@dsl.pipex.com> writes:

> fflush(stdin); may help you once input has been taken and it's contents
> can be safely dumped. I would suggest you look at the whole code as it
> is hybrid and never much welcomed by many, especially C++ coders.

fflush() is only guaranteed to flush /output/ buffers.  Other
functions like __fpurge() can empty an input buffer.  See libc.info
and fflush(3).


Regards,
Roger

--
Roger Leigh
                "Liberty and Livelihood" - Support the Countryside Alliance
                Need Epson Stylus Utilities? http://gimp-print.sourceforge.net/
                GPG Public Key: 0x25BFB848 available on public keyservers