Pages: [1]   Go Down
Author Topic: who flushed flush??  (Read 655 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 45
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I may be a little late with this, but I have been programming for over 30 years and "flush" is always used to clear the input buffer of any remaining characters. Why has it been changed in 1.0??
Logged

Ayer, Massachusetts, USA
Offline Offline
Edison Member
*
Karma: 53
Posts: 1835
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I may be a little late with this, but I have been programming for over 30 years and "flush" is always used to clear the input buffer of any remaining characters. Why has it been changed in 1.0??

It depends on the context, in output contexts, flush means make sure all characters that are queued up to be written are indeed written out, i.e. fflush in the C standard I/O library.

BTW, in the Suggestions for the Arduino project forum, you would have seen a discussion in the last 2 days on the same topic, including a post from the guy who made the change: http://arduino.cc/forum/index.php/topic,116602.0.html.
Logged

Pages: [1]   Go Up
Jump to: