Next: EXP, Previous: EXECUTE_COMMAND_LINE, Up: Intrinsic Procedures [Contents][Index]
9.101 EXIT — Exit the program with status.
- Description:
 EXITcauses 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 INTEGERof the default kind.- Return value:
 STATUSis 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:
 
    
