How to flush input stream?

Alexandre Oliva aoliva@redhat.com
Wed Aug 23 04:41:00 GMT 2000


On Aug 23, 2000, "Sarthak Ray" <sarthak.ray@wipro.com> wrote:

>     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?

Wrong mailing list.  GCC is just a compiler, and this is a C library
issue.  GCC just uses whatever C library comes with the operating
system you're using.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me



More information about the Gcc-help mailing list