itoa Function

private function itoa(n) result(s)

Return left-justified decimal string of non-negative integer.

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(in) :: n

Integer to write.

Return Value character(len=12)


Source Code

   function itoa(n) result(s)
      !! Return left-justified decimal string of non-negative integer.
      ! Arguments
      integer(int32), intent(in) :: n
         !! Integer to write.
      character(len=12) :: s
      write (s, '(i0)') n
   end function itoa