f_tell

The f_tell function gets the current read/write pointer of a file.

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

Parameters

fp
Pointer to the open file object structure.

Return Values

Returns current read/write pointer of the file.

Description

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

#define f_tell(fp) ((fp)->fptr)

QuickInfo

Always available.

See Also

f_open, f_lseek, FIL

Return