FUNCTION atoi(a) CHARACTER(len=*), INTENT(in) :: a INTEGER :: atoi READ (a, '(I9)') atoi END FUNCTION atoi