stdlib_version moduleThe stdlib_version module contains the version of the standard library.
The version information can be used as a compile time constant or retrieved from a getter function at runtime.
In case the standard library is dynamically linked, the version number retrieved from the getter might mismatch the compile time constants provided from the version built against.
Therefore, it is recommended to retrieve the version information always at runtime.
stdlib_versionstdlib_version_stringString constant representing the version number.
stdlib_version_compactCompact representation of the version string following the scheme: major * 10000 + minor * 100 + patch.
get_stdlib_versionExperimental
Getter function to retrieve version information
res = get_stdlib_version ([major], [minor], [patch], [string])
Pure subroutine.
major: shall be an intrinsic integer type. It is an optional, intent(out) argument.
minor: shall be an intrinsic integer type. It is an optional, intent(out) argument.
patch: shall be an intrinsic integer type. It is an optional, intent(out) argument.
string: shall be a deferred length character type. It is an optional, intent(out) argument.
program example_version
  use stdlib_version, only: get_stdlib_version
  implicit none
  character(len=:), allocatable :: version
  call get_stdlib_version(string=version)
  print '(a)', version
end program example_version