lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


The C++ approach to this issue might be worth a read:

http://stackoverflow.com/questions/213907/c-stdendl-vs-n

On Thu, May 26, 2011 at 6:00 PM, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
>> C99, 7.19.3 Files, paragraph 7 and 5.1.2.3/6
>> Basically it says that at program startup stdout is opened as a full
>> buffered file unless it is connected to an interactive device...
>
>  7.19.3/7:
>  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.
>
>  5.1.2.3/6:
>  What constitutes an interactive device is implementation-defined.
>
> :)
>
> -- Roberto
>
>