How to set stdout buffer to zero

Anyone know how to set the stdout buffer to zero size so that stdout goes immediately to disk?

In C on a UNIX system, you can change the buffer size with a call to the stdio.h subroutine “void setbuf(FILE *fp, char *buf)” and set buf to a NULL pointer. Also, in C and Fortran you could use “fflush” to flush the buffer.

  • Mat