Trevor, fflush forces data output only. It does not flush the input buffer, which is considered an error and will be changed. fflush shall force output and discard the input. Harald