On 4/5/2012 7:46 PM, Dave Thompson wrote:

Get out of the habit of outputting 'partial' lines (not terminated by
\n) in C. Sometimes it works and sometimes it doesn't. It appears in
this case on your system it didn't. The standard requires complete
lines to work (up to possibly a reasonable documented length limit)
and if they don't (and you didn't screw up something else) you can
complain to your implementor; incomplete lines are formally undefined
behavior which means the implementation can do anything it likes and
needn't even document it, although in practice implementors try to do
something reasonably sane if possible.

I've never heard of this.

Depending on whether stdout is fully buffered, line buffered, or unbuffered, the output may not appear right away unless you fflush.

But I don't think the implementation can do anything it likes.


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to