codata_constants_type_capi.f90 Source File


Files dependent on this one

sourcefile~~codata_constants_type_capi.f90~~AfferentGraph sourcefile~codata_constants_type_capi.f90 codata_constants_type_capi.f90 sourcefile~codata.f90 codata.f90 sourcefile~codata.f90->sourcefile~codata_constants_type_capi.f90 sourcefile~codata_constants_2010_capi.f90 codata_constants_2010_capi.f90 sourcefile~codata.f90->sourcefile~codata_constants_2010_capi.f90 sourcefile~codata_constants_2014_capi.f90 codata_constants_2014_capi.f90 sourcefile~codata.f90->sourcefile~codata_constants_2014_capi.f90 sourcefile~codata_constants_2018_capi.f90 codata_constants_2018_capi.f90 sourcefile~codata.f90->sourcefile~codata_constants_2018_capi.f90 sourcefile~codata_constants_2022_capi.f90 codata_constants_2022_capi.f90 sourcefile~codata.f90->sourcefile~codata_constants_2022_capi.f90 sourcefile~codata_constants_2010_capi.f90->sourcefile~codata_constants_type_capi.f90 sourcefile~codata_constants_2014_capi.f90->sourcefile~codata_constants_type_capi.f90 sourcefile~codata_constants_2018_capi.f90->sourcefile~codata_constants_type_capi.f90 sourcefile~codata_constants_2022_capi.f90->sourcefile~codata_constants_type_capi.f90

Source Code

module codata__constants_type_capi
    !! Codata constant type: C API.
    use iso_c_binding, only: c_char, c_double
    private

    type, bind(C), public :: capi_constant_type
        !! Derived type for representing a Codata constant in C.
        character(kind=c_char) :: name(65)
        real(c_double) :: value
        real(c_double) :: uncertainty
        character(kind=c_char) :: unit(33)
    end type

end module codata__constants_type_capi