Provides interface for system dependent procedures. More...
Functions/Subroutines | |
| subroutine, public | abortprogram (message) |
| Abort program execution. | |
| integer function, public | sysdepargcount () |
| Get number of command line arguments. | |
| subroutine, public | sysdepargget (index, val) |
| Get command line argument. | |
| subroutine, public | sysdepenvget (env, str) |
| Get environment variable. | |
Provides interface for system dependent procedures.
This module provides interfaces for system dependent procedures. In other words, there are interface declarations of functions and subroutines whose features are regarded as system dependent.
Note that a procedure with one name may have several implementations.
The sysdep module has no dependence to other modules.
| Procedure | Description |
|---|---|
| AbortProgram | Abort program execution |
| SysdepArgGet | Get command line argument |
| SysdepArgCount | Get number of command line arguments |
| SysdepEnvGet | Get environment variable |
| subroutine, public sysdep::abortprogram | ( | character(len=*), intent(in), optional | message | ) |
Abort program execution.
Aborts the program, optionally displaying an error message to stderr.
| [in] | message | Optional error message to display before aborting |
Definition at line 89 of file sysdep.f90.
References dc_types::stderr.
| integer function, public sysdep::sysdepargcount |
Get number of command line arguments.
Returns the number of command line arguments passed to the program.
Definition at line 113 of file sysdep.f90.
References sysdepargcount().
| subroutine, public sysdep::sysdepargget | ( | integer, intent(in) | index, |
| character(len = *), intent(out) | val ) |
Get command line argument.
Retrieves the command line argument at the specified index. Negative indices count from the end (e.g., -1 is the last argument).
| [in] | index | Index of the argument to retrieve |
| [out] | val | Value of the argument |
Definition at line 137 of file sysdep.f90.
References sysdepargcount().
| subroutine, public sysdep::sysdepenvget | ( | character(len = *), intent(in) | env, |
| character(len = *), intent(out) | str ) |
Get environment variable.
Retrieves the value of the specified environment variable.
| [in] | env | Name of the environment variable |
| [out] | str | Value of the environment variable |
Definition at line 175 of file sysdep.f90.