std::setvbuf

From Cppreference

< cpp | io | c
Jump to: navigation, search
Defined in header <cstdio>

int setvbuf( FILE *stream, char *buffer, int mode, size_t size );

Sets the internal buffer of the given file stream stream.

[edit] Parameters

stream - the file stream to set the buffer to
buffer - pointer to a buffer for the stream to use
mode - buffering mode to use. It can be one of the following values:
_IOFBF full buffering
_IOLBF line buffering
_IONBF no buffering
size - size of the buffer

[edit] Return value

(none)

[edit] See also

setbuf
sets the buffer for a file stream
(function)