Is stdout line buffered, unbuffered or indeterminate by default?
The C99 standard does not specify if the three standard streams are unbuffered or line buffered: It is up to the implementation. All UNIX implementations I know have a line buffered stdin. On Linux, stdout in line buffered and stderr unbuffered. As far as I know, POSIX does not impose additional restrictions. POSIX’s fflush page … Read more