| fsetbufsize | Function (tigcc.a)

stdio.h

void fsetbufsize (unsigned short newsize, FILE *f);

Sets the buffer size of a file.

fsetbufsize sets the buffer size of an open file. The buffer size determines how much memory is reallocated to the file every time a write needs more memory from the heap. The default size (128 bytes) is set when the file is opened and should be sufficient for most uses. Setting a larger value will make writes faster at the cost of possibly running out of memory prematurely. If newsize is zero or f is NULL, no changes will be made.