strf_I1P Function

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

Arguments

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

Return Value character


Called by

proc~~strf_i1p~3~~CalledByGraph proc~strf_i1p~3 strf_I1P interface~str~3 str interface~str~3->proc~strf_i1p~3 proc~bctoi_i8p~3 bctoi_I8P proc~bctoi_i8p~3->interface~str~3 proc~bctoi_i2p~3 bctoi_I2P proc~bctoi_i2p~3->interface~str~3 proc~bctoi_i1p~3 bctoi_I1P proc~bctoi_i1p~3->interface~str~3 proc~bctoi_i4p~3 bctoi_I4P proc~bctoi_i4p~3->interface~str~3 interface~bcton~3 bcton interface~bcton~3->proc~bctoi_i8p~3 interface~bcton~3->proc~bctoi_i2p~3 interface~bcton~3->proc~bctoi_i1p~3 interface~bcton~3->proc~bctoi_i4p~3

Contents

Source Code


Source Code

   elemental function strf_I1P(fm, n) result(str)
   !< Convert integer to string.
   !<
   !<```fortran
   !< use penf
   !< print "(A)", str(fm=FI1P, n=1_I1P)
   !<```
   !=> 1 <<<
   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
   endfunction strf_I1P