Flushing buffers

You can use the C library function fflush() to flush buffers. However, fflush() writes nothing to the system, because all records have already been written there by fwrite(). fflush() after a read operation does not refresh the contents of the buffer. For more information on fflush(), see z/OS XL C/C++ Runtime Library Reference.