Convert integer to string.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | fm | Format different from the standard for the kind. |
||
| integer(kind=I1P), | intent(in) | :: | n | Integer to be converted. |
Returned string containing input number.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed arrows point from an interface to procedures which implement that interface. This could include the module procedures in a generic interface or the implementation in a submodule of an interface in a parent module.
elemental function strf_I1P(fm, n) result(str)
!---------------------------------------------------------------------------------------------------------------------------------
!< Convert integer to string.
!---------------------------------------------------------------------------------------------------------------------------------
character(*), intent(in) :: fm !< Format different from the standard for the kind.
integer(I1P), intent(in) :: n !< Integer to be converted.
character(DI1P) :: str !< Returned string containing input number.
!---------------------------------------------------------------------------------------------------------------------------------
!---------------------------------------------------------------------------------------------------------------------------------
write(str, trim(fm)) n
return
!---------------------------------------------------------------------------------------------------------------------------------
endfunction strf_I1P