Table of Contents Previous topic Next topic
C COMPILER LIBRARY FUNCTION REFERENCE->Detailed Descriptions->ferror()
int ferror(FILE* stream); Test for error on given stream
stream Pointer to FILE structure
This function returns the value of the error indicator for the stream. If a reading or writing error has occurred, the error indicator is set and remains set until clearerr() is called.
The value if the error indicator is returned. This is zero if no error has occurred.