/
fs_fgetpos()
fs_fgetpos()
int fs_fgetpos (FS_FILE *p_file, fs_fpos_t *p_pos);
File | Called from | Code enabled by |
---|---|---|
| Application |
|
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:
rtn = fs_fgetpos(p_file, &pos); if (rtn == 0) { // No error occurred } else { // Handle error }
- 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.
, multiple selections available,
Related content
fs_fsetpos()
fs_fsetpos()
More like this
fs_ftell()
fs_ftell()
More like this
FSFile_PosGet()
FSFile_PosGet()
More like this
fs_fseek()
fs_fseek()
More like this
FSFile_PosSet()
FSFile_PosSet()
More like this
Getting or Setting the File Position - POSIX
Getting or Setting the File Position - POSIX
More like this