Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

int  fs_fgetpos (FS_FILE    *p_file,
                 fs_fpos_t  *p_pos);

File

Called from

Code enabled by

fs_api..c

Application

FS_CFG_API_EN

Get file position indicator.

Arguments

p_file

Pointer to a file.

p_pos

Pointer to variable that will receive the file position indicator.

Returned Value

0, if no error occurs.

Non-zero value, otherwise.

Notes/Warnings

  • The return value should be tested against 0:
  • The value placed in pos should be passed to FS_fsetpos() to reposition the file to its position at the time when this function was called.
    • No labels