Next: GETGID, Previous: GETENV, Up: Intrinsic Procedures
GET_ENVIRONMENT_VARIABLE
— Get an environmental variableCALL GET_ENVIRONMENT_VARIABLE(ENVVAR, VALUE)
ENVVAR | Shall be of type CHARACTER(*) .
|
VALUE | Shall be of type CHARACTER(*) .
|
PROGRAM test_getenv CHARACTER(len=255) :: homedir CALL get_environment_variable("HOME", homedir) WRITE (*,*) TRIM(homedir) END PROGRAM