On Tue, Jun 8, 2010 at 11:55 AM, Alan Stern <stern@rowland.harvard.edu> wrote:
On Tue, 8 Jun 2010, Michael Plante wrote:

> Orin Eman wrote:
> >> If you use FILE *, you need an fflush() after each write to the
> >> stream or when the app crashes, you end up with the most interesting
> >> log entries missing.
> That can go in a callback that does nothing but vfprintf and fflush.  Since

What's wrong with setbuf(fp, NULL)?
Replaced by setvbuf( fp, NULL, _IONBF, 0 ) according to the Windows help...
It could be horrendously inefficient if it resulted in a file write for every single character.