strf_I4P Function

private elemental function strf_I4P(fm, n) result(str)

Arguments

TypeIntentOptionalAttributesName
character, intent(in) :: fm
integer(kind=I4P), intent(in) :: n

Return Value character


Called by

proc~~strf_i4p~4~~CalledByGraph proc~strf_i4p~4 strf_I4P interface~str~4 str interface~str~4->proc~strf_i4p~4 proc~bctoi_i8p~4 bctoi_I8P proc~bctoi_i8p~4->interface~str~4 proc~bctoi_i4p~4 bctoi_I4P proc~bctoi_i4p~4->interface~str~4 proc~bctoi_i2p~4 bctoi_I2P proc~bctoi_i2p~4->interface~str~4 proc~bctoi_i1p~4 bctoi_I1P proc~bctoi_i1p~4->interface~str~4 interface~bcton~4 bcton interface~bcton~4->proc~bctoi_i8p~4 interface~bcton~4->proc~bctoi_i4p~4 interface~bcton~4->proc~bctoi_i2p~4 interface~bcton~4->proc~bctoi_i1p~4

Contents

Source Code


Source Code

   elemental function strf_I4P(fm, n) result(str)
   !< Convert integer to string.
   !<
   !<```fortran
   !< use penf
   !< print "(A)", str(fm=FI4P, n=1_I4P)
   !<```
   !=> 1 <<<
   character(*), intent(in) :: fm  !< Format different from the standard for the kind.
   integer(I4P), intent(in) :: n   !< Integer to be converted.
   character(DI4P)          :: str !< Returned string containing input number.

   write(str, trim(fm)) n
   endfunction strf_I4P