Loading...
Searching...
No Matches
sysdep Module Reference

Functions/Subroutines

subroutine, public abortprogram (message)
integer function, public sysdepargcount ()
subroutine, public sysdepargget (index, val)
subroutine, public sysdepenvget (env, str)

Function/Subroutine Documentation

◆ abortprogram()

subroutine, public sysdep::abortprogram ( character(len=*), intent(in), optional message)

Definition at line 56 of file sysdep.f90.

57 use dc_types, only: stderr
58 implicit none
59 character(len=*), intent(in), optional :: message
60 continue
61 if (present(message)) write(stderr, *) trim(message)
62 call dc_f_abort()
Provides kind type parameter values.
Definition dc_types.f90:49
integer, parameter, public stderr
Unit number for Standard ERROR
Definition dc_types.f90:103

References dc_types::stderr.

◆ sysdepargcount()

integer function, public sysdep::sysdepargcount

Definition at line 65 of file sysdep.f90.

66 implicit none
67 sysdepargcount = command_argument_count()

References sysdepargcount().

Here is the call graph for this function:

◆ sysdepargget()

subroutine, public sysdep::sysdepargget ( integer, intent(in) index,
character(len = *), intent(out) val )

Definition at line 70 of file sysdep.f90.

71 implicit none
72 integer, intent(in) :: index
73 character(len = *), intent(out) :: val
74 !
75 integer:: idx
76 integer:: argc
77 continue
78 argc = sysdepargcount()
79 if (index < 0) then
80 idx = argc + 1 + index
81 else
82 idx = index
83 endif
84 if (idx > argc) then
85 val = ''
86 else
87 call get_command_argument(index, val)
88 end if

References sysdepargcount().

Here is the call graph for this function:

◆ sysdepenvget()

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

Definition at line 91 of file sysdep.f90.

92 character(len = *), intent(in) :: env
93 character(len = *), intent(out) :: str
94 call get_environment_variable(trim(adjustl(env)), str)