fs_fflush()
int fs_fflush (FS_FILE *p_file);
File | Called from | Code enabled by |
---|---|---|
fs_api.c | Application | FS_CFG_API_EN and FS_CF_FILE_BUF_EN |
Flush buffer contents to file.
Arguments
p_file
Pointer to a file.
Returned Value
0, if flushing succeeds.
FS_EOF
, otherwise.
Notes/Warnings
- If the most recent operation is output (write), all unwritten data is written to the file.
- If the most recent operation is input (read), all buffered data is cleared.