how to flush stdin buffer in linux

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


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

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

-- 
Thanks,
//richard



More information about the Kernelnewbies mailing list