setbuf()

This is a File I/O function. It is not implemented in the Compiler.

Syntax
  #include <stdio.h>

  
  void setbuf(FILE *f, char *buf);

  
Description

setbuf() lets you specify how a file is buffered. If buf is NULL, the file is unbuffered; i.e., all input or output goes directly to and comes directly from the file. If buf is not NULL, it is used as a buffer (in that case, buf points to an array of BUFSIZ bytes).

See also

fflush() and

setvbuf()