Stdio buffering question

Greg Pasquariello X1190 gp at picuxa.UUCP
Fri Jun 10 23:04:31 AEST 1988


In article <16124 at brl-adm.ARPA> ultra!wayne at ames.arc.nasa.gov (Wayne Hathaway) writes:
>I hate to bother Wizards with what is probably a very simple question,
>but it stumps me.  I have this very simple program that periodically
>does an fprintf(stderr,...) to indicate progress. 
>
>      Wayne Hathaway                  ultra!wayne at Ames.ARPA


You can turn buffering off for stderr (or any stream) with setbuf().  The
syntax for stderr is setbuf(stderr, (char *) NULL). (where NULL is 0).





-- 
=========================================================================
Greg Pasquariello                   AT&T Product Integration Center
ihnp4!picuxa!gp                 299 Jefferson Rd, Parsippany, NJ 07054
=========================================================================



More information about the Comp.unix.wizards mailing list