EXIT
Keywords: sic

Next: FOR Up: SIC Language Internal Help Previous: EXAMINE /SAVE Contents Index

##
EXIT

            [SIC\]EXIT [Code] [/NOPROMPT]

        EXIT always ends SIC execution, at any level. An error status can be set
        on return to the shell by passing an integer code (default 0). In inter-
        active sessions, <^D> has the same behaviour as EXIT.

        On the opposite <^Z> only ends the current level of execution,  so  that
        when  typed at the top level, <^Z> also ends the session. Note that <^Z>
        may be trapped when interactive editing is enabled.

        The option /NOPROMPT will disable any prompt at exit time, for  programs
        (or their dependencies) which prompt for an answer before leaving.

        Note that end of SIC execution does not necessarily means end of program
        execution: SIC may be entered again later by the calling program.