Code Block | ||
---|---|---|
| ||
int fs_feof (FS_FILE *p_file); |
File | Called from | Code enabled by |
---|---|---|
| Application |
|
...
Non-zero value, if EOF indicator is set.
Notes/Warnings
The return value from this function should ALWAYS be tested against 0:
Code Block language cpp rtn = fs_feof(p_file); if (rtn == 0) { // EOF indicator is NOT set } else { // EOF indicator is set }
- If the end-of-file indicator is set (i.e.,
fs_feof()
returnsDEF_YES
),fs_clearerr()
can be used to clear that indicator.