F.ERR - test for an error condition.
Usage:
B:
status = f.err(unit [, clear]);
/* C users use "clearerr" and "ferror" */
Where:
- unit
- is the I/O unit to be tested.
- clear
- specifies if the error flag is to be cleared.
- 0
- just query the state. This is the default.
- 1
- clear the error indicator.
- status
- is the error number (errno) for the file. A non-zero
value indicates an error.
Description:
F.ERR tests to see if an I/O unit is in an error state. It can
also be used to clear the error indicator for the unit.
Notes:
Although F.ERR lets you clear the error flag, in many
situations this will not be enough to allow continued processing
of the file.
See Also:
- expl b lib io.err
- how to print out an error message for the unit.
Copyright © 1996, Thinkage Ltd.