Allows the user to control buffering for a stream.
#include <stdio.h> void setbuf (FILE *stream, char *buffer);
stream
buffer
If the buffer argument is a null pointer, the stream is unbuffered. If not, the buffer must point to a character array of length BUFSIZ. This user-specified buffer is used for I/O buffering instead of the default system-allocated buffer for the given stream.
The stderr stream is unbuffered by default, but may be assigned buffers with setbuf.
Use setvbuf for new code; setbuf is retained for compatibility with existing code.
None.
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/stdio.h | stdio.h | clib.lib |