std::setbuf

From Cppreference

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

void setbuf( FILE *stream, char *buffer );

Sets the internal buffer to use for stream operations. It should be at least BUFSIZ characters long.

[edit] Parameters

stream - the file stream to set the buffer to
buffer - pointer to a buffer for the stream to use. If NULL is supplied, the buffering is turned off

[edit] Return value

(none)

[edit] See also

setvbuf
sets the buffer and its size for a file stream
(function)