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

ID 767251
Date 7/13/2023
Public

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

Document Table of Contents

GETENV

Portability Subroutine: Returns the value of an environment variable.

Module

USE IFPORT

CALL GETENV (ename,evalue)

ename

(Input) Character*(*). Environment variable to search for.

evalue

(Output) Character*(*). Value found for ename. Blank if ename is not found.

Example

use IFPORT
character*40 libname
CALL GETENV ("LIB",libname)
TYPE *, "The LIB variable points to ",libname

See Also