Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Buffering of data into large blocks to reduce system calls is exactly what is done by the C library I/O functions (e.g., fprintf(), fscanf(), fgets(), fputs(), fputc(), fgetc()) when operating on disk files. Thus, using the stdio library relieves us of the task of buffering data for output with write() or input via read().
The setvbuf() function controls the form of buffering employed by the stdio library.