On Wed, Jan 9, 2013 at 10:20 AM, beyond.hack wrote:
> you may try with
> __fpurge()
>From the manpage:
NOTES
Usually it is a mistake to want to discard input buffers.
--
Thanks,
//richard
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewb
you may try with
__fpurge()
On Wed, Jan 9, 2013 at 1:23 AM, Tobias Boege wrote:
> On Tue, 08 Jan 2013, Niroj Pokhrel wrote:
> > Hi all,
> > I tried to use fflush(stdin) in gcc as I used to in other compilers. But
> It
> > didn't clear my buffer so I am wondering how can I clear the stdin buffe
On Tue, 08 Jan 2013, Niroj Pokhrel wrote:
> Hi all,
> I tried to use fflush(stdin) in gcc as I used to in other compilers. But It
> didn't clear my buffer so I am wondering how can I clear the stdin buffer
> in GCC.
> I tried using lseek but got -EPIPE (as tty devices doesn't support lseek
> operat
On Tue, Jan 8, 2013 at 6:20 PM, Niroj Pokhrel wrote:
> Hi all,
> I tried to use fflush(stdin) in gcc as I used to in other compilers. But It
> didn't clear my buffer so I am wondering how can I clear the stdin buffer in
> GCC.
> I tried using lseek but got -EPIPE (as tty devices doesn't support ls
Hi all,
I tried to use fflush(stdin) in gcc as I used to in other compilers. But It
didn't clear my buffer so I am wondering how can I clear the stdin buffer
in GCC.
I tried using lseek but got -EPIPE (as tty devices doesn't support lseek
operation).
Thanx in advance.
__