411 REFERENCE · Wikibooks
C++ Programming/Code/Standard C Library/Functions/setvbuf
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
setvbuf
#include <cstdio>
int setvbuf( FILE *stream, char *buffer, int mode, size_t size );
The function setvbuf() sets the buffer for stream to be buffer, with a size of size. mode can be one of:
_IOFBF, which indicates full buffering
_IOLBF, which means line buffering
_IONBF, which means no buffering
Related topics fflush - setbuf