How to flush output to disk?

Conor P. Cahill cpcahil at virtech.uucp
Sat Dec 9 00:15:07 AEST 1989


In article <333 at charyb.COM>, dan at charyb.COM (Dan Mick) writes:
> fflush()?  You've gotta do that more than once.  Why not add a 
> setbuf(stdout, NULL) to the top of the file?  Quick, easy, simple.

except that it is much more ineffecient unless you plan to call fflush() after
*every* putc()/fprintf()/fputs().
-- 
+-----------------------------------------------------------------------+
| Conor P. Cahill     uunet!virtech!cpcahil      	703-430-9247	!
| Virtual Technologies Inc.,    P. O. Box 876,   Sterling, VA 22170     |
+-----------------------------------------------------------------------+



More information about the Comp.unix.questions mailing list