fputs

Chuck Swiger cswiger at mac.com
Wed May 26 10:17:04 PDT 2004


Richard Burnett-Godfree wrote:
> In the code the software use fputs to output chars to the terminal.
> 
> What seems to be happening is these are all buffered until the process
> terminates and then they all come out rather than being sent to the terminal
> during the program operation.  Do I need to change an environment setting ??
> Should I swap to printf ??  What is the syntax ??

You ought to add a fflush(stdout) to the code when and where you want to be 
sure that the output buffer is written...

-- 
-Chuck



More information about the freebsd-questions mailing list