How to flush input stream?

Sarthak Ray sarthak.ray@wipro.com
Wed Aug 23 04:31:00 GMT 2000


Hi all,
the code
    #include 
<sydio.h>
    fflush(stdin) 
does not flush the input stream in Linux even 
though it does so in dos.
Is there a simple function or method in C to flush 
the input stream easily?



More information about the Gcc-help mailing list