setvbuf

Controls buffering and buffer size.

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

Required Header
<stdio.h>

Return Value

This function returns zero on success. -1 indicates an error.

Parameters

stream

  A pointer to the open FILE structure

buffer

  The buffer to use

mode

  The buffering mode

size

  The buffer size in bytes

Remarks

The setvbuf function does nothing in the JCC library, the function always returns zero when stream is a valid open file.

Stream I/O Routines

See Also    fclose, fflush, fopen, setbuf