ferror
Syntax
- int ferror(int filepointer)
Arguments
- filepointer
- Pointer to a file such as created by fopen.
Return
- Zero if no error is set for the specified file, non-zero value otherwise.
Description
- Tests the error indicator for the specified file. If the error indicator is set, then it returns a nonzero value. If the error indicator is not set, then it returns zero.
Also see
- clearerr
Comments
- Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.