LF Fortran 95

EXIT Subroutine

Description

The EXIT subroutine causes program execution to terminate with an exit code.

Syntax

EXIT (ilevel)

Arguments

ilevel is an INTENT(IN) scalar of type INTEGER. It sets the value of the program's exit code.

Example

call exit(3) ! exit -- system error level 3