When to use fflush()?
Paul Blumstein
paulb at ttidca.TTI.COM
Fri Sep 1 03:10:52 AEST 1989
In article <19319 at mimsy.UUCP> chris at 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 at ttidca.TTI.COM
DISCLAIMER: Everything & everyone is hereby disclaimed!
More information about the Comp.lang.c
mailing list