9.117. GETENV

9.117 GETENV — Get an environmental variable

Description:
Get the VALUE of the environmental variable NAME.

This intrinsic routine is provided for backwards compatibility with GNU Fortran 77. In new code, programmers should consider the use of the GET_ENVIRONMENT_VARIABLE intrinsic defined by the Fortran 2003 standard.

Note that GETENV need not be thread-safe. It is the responsibility of the user to ensure that the environment is not being updated concurrently with a call to the GETENV intrinsic.

Standard:
GNU extension
Class:
Subroutine
Syntax:
CALL GETENV(NAME, VALUE)
Arguments:
NAME S