March 2002
Intermediate to advanced
528 pages
21h 29m
English
set_file_buffer
int set_file_buffer(inthandle, intsize)
Sets the file buffer size for the file referenced by
handle to size
bytes. Writes to a file are committed to disk only when the
file’s buffer is full. By default, a
file’s buffer is set to 8 KB. If
size is 0, writes are
unbuffered and any write to the file will happen as the write occurs.
Returns 0 if the operation is successful and
EOF if it fails.