Everything

setbuf


Defines and sets a stream input/output buffer area by the user program.

[Format]

#include <stdio.h>

void setbuf (FILE *fp, char buf[BUFSIZ]);

[Parameters]

fp File pointer

buf Pointer to buffer area

[Remarks]

The setbuf function defines the storage area pointed to by buf so that it can be used as an input/output buffer area for the stream input/output file indicated by file pointer fp. As a result, input/output processing is performed using a buffer area of size BUFSIZ.