This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fflush(stdin)


On Thu, Jan 29, 2009 at 05:51:57AM +0530, Kolpur Srinivasa Chary 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.

http://c-faq.com/stdio/stdinflush.html
and following.

Regards,

	Jens
-- 
Jens Schweikhardt http://www.schweikhardt.net/
SIGSIG -- signature too long (core dumped)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]