"Gary V. Vaughan" <[EMAIL PROTECTED]> writes:

> At worst we need an autoconf test to see whether fflush works on stdin,
> but maybe all that is needed is to call fpurge when present, and
> fallback to fflush otherwise?

For what it's worth, on Solaris it's called __fpurge and is declared
in <stdio_ext.h> (along with __fpending and friends).  The
documentation says it "discards any pending buffered I/O on the
stream."  It returns void.


Reply via email to