21 Oct
2009
21 Oct
'09
10:52 a.m.
I found this section from the C standard (n1124.pdf), 7.19.3 Files, about buffering: 7 At program startup, three text streams are predefined and need not be opened explicitly —standard input (for reading conventional input), standard output (for writing conventional output), and standard error (for writing diagnostic output). As initially opened, the standard error stream is not fully buffered; the standard input and standard output streams are fully buffered if and only if the stream can be determined not to refer to an interactive device. So it seems they should not be buffered, unless changed (like to a file). (The C++ streams just refer to these C streams.) Hans