kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* how to flush stdin buffer in linux
@ 2013-01-08 17:20 Niroj Pokhrel
  2013-01-08 17:53 ` richard -rw- weinberger
  2013-01-08 19:53 ` Tobias Boege
  0 siblings, 2 replies; 5+ messages in thread
From: Niroj Pokhrel @ 2013-01-08 17:20 UTC (permalink / raw)
  To: kernelnewbies

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130108/6ffc5ec5/attachment.html 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-01-09 23:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-08 17:20 how to flush stdin buffer in linux Niroj Pokhrel
2013-01-08 17:53 ` richard -rw- weinberger
2013-01-08 19:53 ` Tobias Boege
2013-01-09  9:20   ` beyond.hack
2013-01-09 23:46     ` richard -rw- weinberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).