[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
exit                         exit Statement

    exit opt_expr_list;

    This  statement  causes  the  program  to  behave  as if the end of the
    current input file had been reached.  Any further input files specified
    are ignored.  If there are any FINAL or END actions, they are executed.

    If encountered in a FINAL action, the action is terminated, any further
    input files are ignored and any END actions are executed.

    If  encountered  in  an  END  action,  the  execution  of the action is
    terminated and program execution is terminated.

    The  optional  expression  list  is  evaluated  and the resultant value
    returned to DOS upon termination  by QTAwk as  the exit status.  If  no
    expression  list  is  present,  or  no  exit statement encountered,
    QTAwk returns a value of zero for the exit status.

See Also: endfile next FINAL END
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson