BFILE library: bfflush() - buffered file flush

Name

bfflush() - buffered file flush

Synopsis

#include "bfile.h"

int bfflush(BFILE *bfp);

Decription

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().

Return value

Returns 0 if successful, or an errno value otherwise.

See also

bfile(), bfile_dtor(), bferror(), bfwrite().


This function is part of the BFILE library.