
27 Oct
2004
27 Oct
'04
8:07 p.m.
John Goerzen wrote:
I wonder what the behavior of fwrite() in this situation is. I don't know if it ever performs buffering such that write() is never called during a call to fwrite().
fwrite() is no different to other stdio functions in this regard. If
the stream is buffered, a call to fwrite() may simply result in data
being appended to the buffer; it doesn't guarantee a call to write().
--
Glynn Clements