sysdepenv.f90 File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine sysdepenvget (env, str)
 

Function/Subroutine Documentation

◆ sysdepenvget()

subroutine sysdepenvget ( character(len = *), intent(in)  env,
character(len = *), intent(out)  str 
)

Definition at line 33 of file sysdepenv.f90.

Referenced by historycreate1(), and historycreate2().

33  !
34  ! この手続きは *env* に指定した環境変数の値を *str* へ返します.
35  ! *env* 指定した環境変数が定義されていない場合は空文字が *str* へ
36  ! 返ります.
37  ! 処理系が <b>GET_ENVIRONMENT_VARIABLE()</b> または
38  ! <b>GETENV()</b> を有していない場合は常に空文字が *str* へ
39  ! 返ります.
40  !
41  ! This procedure returns environment variable which is specified
42  ! by *env* to *str*.
43  ! If the environment variable is not set, blank is returned to *str*.
44  ! If <b>GET_ENVIRONMENT_VARIABLE()</b> or
45  ! <b>GETENV()</b> is not implemented, blank is returned to *str*
46  ! at all times.
47  !
48  implicit none
49  character(len = *), intent(in) :: env ! 環境変数名
50  character(len = *), intent(out) :: str ! 環境変数の値
51 continue
52  call get_environment_variable(trim(adjustl(env)), str)
Here is the caller graph for this function: