synchronous freebsd print
James K. Toothman
jtoothman at about.com
Wed Feb 27 16:15:41 UTC 2008
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)
>
>
More information about the freebsd-hackers
mailing list