Download DSP563CCC DSP56300 Family Optimizing C Compiler User`s Manual
Transcript
setvbuf setvbuf NAME setvbuf — Alter stream buffering. SYNOPSIS #include <stdio.h> int setvbuf ( FILE *stream, char *buf, int mode, size_t size ); DESCRIPTION The function setvbuf is used to alter the way a specified stream is buffered. It must only be used before any other operation is performed on the specified stream. The argument mode determines the buffering policy: _IOFBF — Use the full size of the buffer in the most efficient way. _IOLBF — Use a line buffering policy: flush on newlines. _IONBF — Do not buffer the stream at all. The argument size specified the buffer size for this stream. The pointer buf, if nonNULL, may be used for stream buffering. If buf is NULL, then setvbuf will allocate any needed buffer. SEE ALSO setbuf MOTOROLA — A restricted form of setvbuf. DSP563CCC User’s Manual A-115