bfflush() - buffered file flush
#include "bfile.h" int bfflush(BFILE *bfp);
The bfflush()
function flushes any data which has been
written and which remains buffered.
The BFILE
must have been set up with
bfsetup()
and must not be in an error condition.
If an error occurs, the
BFILE
is put into an error condition, which
can only be cleared by bferror().
Returns 0
if successful, or an errno
value otherwise.
bfile(), bfile_dtor(), bferror(), bfwrite().
This function is part of the BFILE library.