fflush(stdin)

Jens Schweikhardt schweikh@schweikhardt.net
Thu Jan 29 17:43:00 GMT 2009


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)



More information about the Gcc-help mailing list