Home > Electronics Tutorials > C Language Tutorial > stdio.h - File Functions - setbuf

C Language Programming Library Reference Guide

stdio.h - File Functions - setbuf


void setbuf(FILE *stream, char *buffer); Defines how a stream should be buffered. This should be called after the stream has been opened but before any operation has been done on the stream. Input and output is fully buffered. The default BUFSIZ is the size of the buffer. The argument buffer points to an array to be used as the buffer. If buffer is a null pointer, then the stream is unbuffered.
Note: To report broken links or to submit your projects, tutorials please email to Webmaster