synchronous freebsd print

Peter Jeremy peterjeremy at optushome.com.au
Wed Feb 27 08:59:41 UTC 2008


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)

-- 
Peter Jeremy
Please excuse any delays as the result of my ISP's inability to implement
an MTA that is either RFC2821-compliant or matches their claimed behaviour.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20080227/bc2bf025/attachment.pgp


More information about the freebsd-hackers mailing list