f_size

The f_size function gets the size of a file.

FSIZE_t f_size (
  FIL* fp   /* [IN] File object */
);

Parameters

fp
Pointer to the open file object structure.

Return Values

Returns the size of the file in unit of byte.

Description

In this revision, the f_size function is implemented as a macro. It does not have any validation and mutual exclusion.

#define f_size(fp) ((fp)->obj.objsize)

QuickInfo

Always available.

See Also

f_open, f_lseek, FIL

Return