C++ Programming/Code/Standard C Library/Functions/setbuf
< C++ Programming < Code < Standard C Library < Functionssetbuf
Syntax |
#include <cstdio>
void setbuf( FILE *stream, char *buffer );
|
The setbuf() function sets stream to use buffer, or, if buffer is NULL, turns off buffering. This function expects that the buffer be BUFSIZ characters long - since this function does not support specifying the size of the buffer, buffers larger than BUFSIZ will be partly unused.
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.