setbuf

I am currently reading about buffers.Can anyone give some example when we really needs functions like setbuf or setvbuf etc.
PS:I happen to know when will these functions should be used on earth!

You can use it to control buffering strategy (for example turn off buffering when writing to the sockets) or change buffer size to maximize IO speed.
Topic archived. No new replies allowed.