Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference
A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: GUID-3B4E9714-0CBC-424F-A74C-E127EAE70606
Visible to Intel only — GUID: GUID-3B4E9714-0CBC-424F-A74C-E127EAE70606
IS_IOSTAT_EOR
Elemental Intrinsic Function (Generic): Tests for an end-of-record condition.
result=IS_IOSTAT_EOR(i)
i |
(Input) Must be of type integer. |
Results
The result type is default logical. The value of the result is true only if i is a value that could be assigned to the scalar integer variable in an IOSTAT= specifier to indicate an end-of-record condition.
Example
INTEGER IO_STATUS … READ (30, ADVANCE='YES', IOSTAT=IO_STATUS) A, B, C IF (IS_IOSTAT_EOR (IO_STATUS)) THEN … ! process end of record ENDIF … ! process data read