Re: fflush(stdin)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux