Hi all,<br>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. <br>I tried using lseek but got -EPIPE (as tty devices doesn't support lseek operation). <br>
Thanx in advance.<br>