Date: Wed, 26 May 2004 13:16:17 -0400 From: Chuck Swiger <cswiger@mac.com> To: Richard@Tribune-IS.com Cc: questions@FreeBSD.org Subject: Re: fputs Message-ID: <40B4D0E1.4080709@mac.com> In-Reply-To: <NIBBIELIKMBOHLBOEMCFGECACCAA.Richard@Tribune-IS.com> References: <NIBBIELIKMBOHLBOEMCFGECACCAA.Richard@Tribune-IS.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40B4D0E1.4080709>