> And not only that, flushing an input stream is undefined behaviour, > though it was a common practice in many different unix systems.
Well, I didn't mean litteraly using fflush() on stdin, but emptying it before asking for input.
> And not only that, flushing an input stream is undefined behaviour, > though it was a common practice in many different unix systems.
Well, I didn't mean litteraly using fflush() on stdin, but emptying it before asking for input.