The ferror function tests for a read or write error on stream. If an error has occurred, the error indicator for stream remains set until the file is closed (using fclose) or rewound (using rewind). The ferror function is in the RL-FlashFS library. The prototype is defined in stdio.h. |