W3C home > Mailing lists > Public > www-lib@w3.org > January to March 2000

Re: Memory leaks ?

From: Amir Khassaia <AKhassaia@vet.com.au>
Date: Mon, 7 Feb 2000 17:33:58 -0500 (EST)
Message-ID: <389F480A.AC3C757A@vet.com.au>
To: www-lib@w3.org
Hi
As far as i know there is a buffer for every printing function (except for printing to stderr
which is unbuffered) and all the output goes to that buffer and sits there until a carrige
return '\n'.
Once that arrives the buffer is written to screen. That's why it's better to have '\n' in the
beginning of your printf statements rather than the end because if it segfaults you can read the
contents of the buffer up to this stage at least...

hope this helps
Received on Monday, 7 February 2000 20:23:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:35 GMT