Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.unix.questions Subject: Re: How to flush output to disk? Message-ID: <1989Dec8.131507.1685@virtech.uucp> Date: 8 Dec 89 13:15:07 GMT References: <606@caldwr.UUCP> <1025@friar-taac.UUCP> <4176@sbcs.sunysb.edu> <333@charyb.COM> Distribution: usa Organization: Virtual Technologies Inc. Lines: 11 In article <333@charyb.COM>, dan@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 | +-----------------------------------------------------------------------+