Hi all,
I'm trying to understand how setbuf works and came across this from google for setbuf.
http://www.cplusplus.c om/reference/clibrary/cstdio/setbuf/
With fully buffered streams, writing operations are not intended to be written directly to the device associated with them; the data is accumulated in the buffer and written to the device as a block when it is filled.
I have written a simple c program...