Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!cs.utexas.edu!rutgers!usc!apple!claris!sts!octopus!pyramid!prls!philabs!ttidca!paulb From: paulb@ttidca.TTI.COM (Paul Blumstein) Newsgroups: comp.lang.c Subject: Re: When to use fflush()? Keywords: fflush Message-ID: <5738@ttidca.TTI.COM> Date: 31 Aug 89 17:10:52 GMT References: <143@sherpa.uucp> <19319@mimsy.UUCP> Reply-To: paulb@ncc1701.tti.com (Paul Blumstein) Distribution: na Organization: Phawk U. Lines: 13 In article <19319@mimsy.UUCP> chris@mimsy.UUCP (Chris Torek) writes: +Output buffers are flushed by normal program exit (via exit() or +via return from main()), and, in the proposed C standard, by +`fflush((FILE *)NULL);'. Some output buffers (those that are +`associated with terminals') are flushed by some kinds of input. And don't forget the the buffers are also flushed by fclose() . ============================================================================= Paul Blumstein | Carpe diem: Eat a carp today! Citicorp/TTI | Santa Monica, CA +------------------------------------------------------- {philabs,csun,psivax}!ttidca!paulb or paulb@ttidca.TTI.COM DISCLAIMER: Everything & everyone is hereby disclaimed!