This is the mail archive of the
mailing list for the GCC project.
- From: Kolpur Srinivasa Chary <srinu dot kolpur at gmail dot com>
- To: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Thu, 29 Jan 2009 05:51:57 +0530
- Subject: fflush(stdin)
I am using gcc on Debian GNU/Linux, here is a program I wrote,
But, fflush(stdin) was not as it should, it was not clearing buffer, so
I was not able to read the character input from the user.
So, is there any way to flush the buffer and read the character input
from the user? Please help me out.