EXIT(3f)

DESCRIPTION
EXIT causes immediate termination of the program with status. If status is omitted it returns the canonical success for the system. All Fortran I/O units are closed.

STANDARD
GNU extension

CLASS
Subroutine

SYNTAX
CALL EXIT([STATUS])

ARGUMENTS

STATUS Shall be an INTEGER of the default kind.

RETURN VALUE
STATUS is passed to the parent process on exit.

EXAMPLE
          program test_exit
            integer :: STATUS = 0
            print *, 'This program is going to exit.'
            call EXIT(STATUS)
          end program test_exit

SEE ALSO
ABORT, KILL

AUTHOR

This information was taken from the GFortran documentation (https://gcc.gnu.org/onlinedocs/gcc-5.3.0/gfortran/) and converted to a manpage by AstroFloyd (http://astrofloyd.org).