On Tue, Jun 8, 2010 at 11:55 AM, Alan Stern <email@example.com> wrote:
On Tue, 8 Jun 2010, Michael Plante wrote:What's wrong with setbuf(fp, NULL)?
> 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
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.