Converts a bool to a string.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in) | :: | val |
function tem_b2str( val ) result(str)
! ---------------------------------------------------------------------------
!>
logical, intent(in) :: val
!>
character(len=SolSpecLen) :: str
! ---------------------------------------------------------------------------
character(len=SolSpecLen) :: tmp
! ---------------------------------------------------------------------------
write(tmp, *) val
str = adjustl(tmp)
end function tem_b2str