...
Code Block | ||
---|---|---|
| ||
int fs_fgetpos (FS_FILE *p_file, |
...
fs_fpos_t *p_pos); |
...
...
...
File |
---|
...
Called from |
---|
...
Code enabled by |
---|
...
...
|
...
|
...
Application |
...
|
...
Arguments
...
p_file
anchor
Pointer to a file.
Anchor
p_pos
anchorPointer to variable that will receive the file position indicator.
...
Returned Value
...
0, if no error occurs. 1091914 Anchor
Non-zero value, otherwise. Anchor
Notes/Warnings
...
...
The return value should be tested against 0:
...
Code Block
...
language
...
rowspan | 6 |
---|
...
cpp 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.