Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Feb 2008 10:50:28 -0500
From:      "James K. Toothman" <jtoothman@about.com>
Cc:        hackers@freebsd.org
Subject:   Re: synchronous freebsd print
Message-ID:  <47C586C4.9010703@about.com>
In-Reply-To: <20080227085932.GV83599@server.vk2pj.dyndns.org>
References:  <1204051337.47c45d89ea6eb@imp.free.fr>	<284719.71279.qm@web57708.mail.re3.yahoo.com> <20080227085932.GV83599@server.vk2pj.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Use fprintf(stderr, ...) instead, as stderr is unbuffered by default.


James Toothman
About.com

Peter Jeremy wrote:
> On Wed, Feb 27, 2008 at 12:08:28AM -0800, Sanjeev Kumar.S wrote:
>   
>>     I have a quick question, and I believe this will 
>>    be a common requirement.
>>     
>
> This is a standard C question.
>  
>   
>>    I do a print of some data and then immediately 
>>    in a next statement there is a crash.
>>     
> ...
>   
>>    Is there anyway to get the complete print
>>    before executing the next instruction.
>>     
>
> Look at fflush(3)
>
>   



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47C586C4.9010703>