Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

GETLASTERROR

Portability Function: Returns the last error set.

Module

USE IFPORT

result = GETLASTERROR( )

Results

The result type is INTEGER(4). The result is the integer corresponding to the last runtime error value that was set.

For example, if you use an ERR= specifier in an I/O statement, your program will not abort if an error occurs. GETLASTERROR provides a way to determine what the error condition was, with a better degree of certainty than just examining errno. Your application can then take appropriate action based upon the error number.