EAGLE Help

exit()


Function
Exits from a User Language Program.

Syntax
void exit(int result);
void exit(string command);

Constants

EXIT_SUCCESS return value for successful program execution (value 0)
EXIT_FAILURE return value for failed program execution (value -1)

See also RUN

Description
The exit function terminates execution of a User Language Program.
If an integer result is given it will be used as the return value of the program.
If a string command is given, that command will be executed as if it were entered into the command line immediately after the RUN command. In that case the return value of the ULP is set to EXIT_SUCCESS.

Index Copyright © 2005 CadSoft Computer GmbH