Does NEWLINE always flush stdio buffer?

Rahul Dhesi dhesi at bsu-cs.bsu.edu
Tue Jul 4 14:42:07 AEST 1989


In article <18351 at mimsy.UUCP> chris at mimsy.UUCP (Chris Torek) writes:
   I feel the best approach is for applications to set all output files
   to `fully buffered', and then to use fflush whenever the output is
   supposed to appear.  This never produces surprises...

...except under VAX/VMS which, when you run a batch job, interprets

     fflush(stdout);
	  
to mean:

     printf("\n");
-- 
Rahul Dhesi <dhesi at bsu-cs.bsu.edu>
UUCP:    ...!{iuvax,pur-ee}!bsu-cs!dhesi



More information about the Comp.lang.c mailing list