title: how does work setvbuf() in C
body: <p>can someone explain me how does <code>int setvbuf(FILE *stream, char *buffer, int mode, size_t size)</code> C function works?</p>
  
  <p>I think it sets a buffer for a file stream and stores data in the buffer allocated by <code>setvbuf</code> in <code>size_t</code> size chunks of data, am I right? And when the buffer is full it is flushed?</p>
  
  <p>sorry I am new here</p>