MicrOS
setbuf.c File Reference
#include "../stdio.h"

Functions

void setbuf (FILE *stream, char *buffer)
 Set stream buffer. More...
 

Function Documentation

◆ setbuf()

void setbuf ( FILE stream,
char *  buffer 
)

Set stream buffer.

Specifies the buffer to be used by the stream for I/O operations, which becomes a fully buffered stream. Or, alternatively, if buffer is a null pointer, buffering is disabled for the stream, which becomes an unbuffered stream.

Parameters
streamPointer to a FILE object that identifies the stream to be closed.
bufferUser allocated buffer. Shall be at least BUFSIZ bytes long.