Keyboard input/Flush the keyboard buffer: Difference between revisions

Content deleted Content added
Line 823: Line 823:
// fflush(stdin);
// fflush(stdin);


// Always works. The only difference is (?) that readed characters may
// Always works. Readed characters may remain somethere in RAM.
// remain somethere in RAM.
//
//
fseek(stdin, 0, SEEK_END);
fseek(stdin, 0, SEEK_END);