[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: print stdout and flush
- From: Axel Kittenberger <axkibe@...>
- Date: Thu, 26 May 2011 19:09:18 +0200
The C++ approach to this issue might be worth a read:
On Thu, May 26, 2011 at 6:00 PM, Roberto Ierusalimschy
>> C99, 7.19.3 Files, paragraph 7 and 188.8.131.52/6
>> Basically it says that at program startup stdout is opened as a full
>> buffered file unless it is connected to an interactive device...
> 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
> What constitutes an interactive device is implementation-defined.
> -- Roberto