exit

BAP Online Manuals : Library Reference : Library by Name : exit
Previous: exists
Next: fail

6.2.48. exit

ends the running application, displaying an error code to the user

SYNOPSIS

INCLUDE 'prolib.h'
exit(20)

SYNTAX

exit(ErrorCode) (i)

ARGUMENTS

integer(ErrorCode) (i) Value to be displayed.

DESCRIPTION

Exit ends your application entirely. The value of ErrorCode is displayed to the user.

EXAMPLE

Error = fatal,
exit(100).

ERRORS

No runtime errors. Fails if ErrorCode is not an integer.

LAYERS

prolog-process, client-server, object

RELATED PREDICATES

(none)


BAP Online Manuals : Library Reference : Library by Name : exit
Previous: exists
Next: fail