how to flush stdin buffer in linux

richard -rw- weinberger richard.weinberger at
Wed Jan 9 18:46:47 EST 2013

On Wed, Jan 9, 2013 at 10:20 AM, beyond.hack <beyond.hack at> wrote:
> you may try with
> __fpurge()

>From the manpage:
       Usually it is a mistake to want to discard input buffers.


More information about the Kernelnewbies mailing list