Obtain library version as major * 10000 + minor + 100 + patch
function get_version_api() result(version) & & bind(C, name=namespace//"get_version") !DEC$ ATTRIBUTES DLLEXPORT :: get_version_api integer(c_int) :: version integer :: major, minor, patch call get_dftd4_version(major, minor, patch) version = 10000_c_int * major + 100_c_int * minor + patch end function get_version_api