Next: FIO_UNIT - Get a unit number given a file descriptor
Up: Routine Descriptions
Previous: FIO_SERR - Set error status
FIO_TEST
- Test if an FIO status value belongs to a certain class of errors
- Description:
- See if the value of STATUS corresponds one of the FIO error codes
that correspond to the error class given as the first argument.
- Invocation:
- RESULT = FIO_TEST( ERRCLS, STATUS )
- Arguments:
-
-
ERRCLS = CHARACTER
(
) (Given)
-
The name of the error class
-
STATUS = INTEGER (Given and Returned)
-
The global status.
- Returned Value:
-
-
FIO_TEST = LOGICAL
-
Whether STATUS is in the named class of errors.
- Examples:
-
- IF( FIO_TEST( 'OPEN ERROR', STATUS ) ) THEN ...
- See if the value of STATUS is one of the values associated
with the error class 'OPEN ERROR'.
-
External Routines Used
- CHR:
CHR_SIMLR
Next: FIO_UNIT - Get a unit number given a file descriptor
Up: Routine Descriptions
Previous: FIO_SERR - Set error status
FIO/RIO FORTRAN file I/O routines
Starlink User Note 143
P M Allan
A J Chipperfield
20 July 2001
E-mail:starlink@jiscmail.ac.uk
Copyright © 2000 Council for the Central Laboratory of the Research Councils