Re: Memory leaks ?

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 UTC