Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Code Block
languagecpp
int  fs_feof (FS_FILE  *p_file);


File

Called from

Code enabled by

fs_api.c

Application

FS_CFG_API_EN

...

  1. The return value from this function should ALWAYS be tested against 0:

    Code Block
    languagecpp
    rtn = fs_feof(p_file);
    if (rtn == 0) {
        // EOF indicator is NOT set
    } else {
        // EOF indicator is     set
    }


  2. If the end-of-file indicator is set (i.e., fs_feof() returns DEF_YES), fs_clearerr() can be used to clear that indicator.