...
Anchor
fs_clearerr()
). There are actually two sets of flags. One reflects whether the file encountered the end-of-file (EOF) during the previous access, and if this is set, writes will not fail, but reads will fail. The other reflects device errors, and no subsequent file access will succeed (except file close) unless this is first cleared. The functions fs_ferror()
and fs_feof()
can be used to get the state of device error and EOF conditions, respectively.