Hello,

I am right now learning about file I/O operations using C through Prata's book. Right now I am on Chapter 13 of it.


I am unable to understand where setvbuf() can be used. I understand that we can control buffering with it but how can it be done? Can someone please give a small example of this function in action?

I have searched on the internet and I have not been able to find a clear example.

Regards,
Ishan