FUNCTION atol(a) CHARACTER(len=*), INTENT(in) :: a LOGICAL :: atol READ (a, '(L1)') atol END FUNCTION atol