...
Code Block | ||
---|---|---|
| ||
int fs_ferror (FS_FILE *p_file); |
...
HTML Table | |
---|---|
summary | |
class | Plain_Table | Table Row (tr) | Table Cell (td) | Anchor | | 1109708 |
File |
---|
...
Called from |
---|
...
Code enabled by |
---|
...
fs_api..c |
...
...
Application |
...
FS_CFG_API_EN |
...
Arguments
...
p_file
Anchor
Pointer to a file.
...
...
Returned Value
...
Anchor
Notes/Warnings
...
The return value from this function should ALWAYS be tested against 0:
...
Code Block
...
rowspan | 6 |
---|
language cpp rtn = fs_ferror(p_file);
...
if (rtn == 0)
...
{ // Error indicator is NOT
...
set } else { // Error indicator is set }
- If the error indicator is set (i.e.,
fs_ferror()
returns a non-zero value),fs_clearerr()
can be used to clear that indicator.