f_error

The f_error tests for an error on a file.

int f_error (
  FIL* FileObject   /* File object */
);

Parameters

FileObject
Pointer to the open file object structure.

Return Values

Returns a non-zero value if an error has occured; otherwise it returns a zero.

Description

In this revision, the f_error function is implemented as a macro.

#define f_error(fp) (((fp)->flag & FA__ERROR) ? 1 : 0)

QuickInfo

Always available.

See Also

f_open, FIL

Return