1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
<html>
<head>
<title>EAGLE Help: exit()</title>
</head>
<body bgcolor=white>
<font face=Helvetica,Arial>
<hr>
<i>EAGLE Help</i>
<h1><center>exit()</center></h1>
<hr>
<dl>
<dt>
<b>Function</b>
<dd>
Exits from a User Language Program.
<p>
<dt>
<b>Syntax</b>
<dd>
<tt>void exit(int result);</tt><br>
<tt>void exit(string command);</tt>
<p>
</dl>
<b>Constants</b>
<p>
<table>
<tr><td valign=top><font face=Helvetica,Arial><tt>EXIT_SUCCESS</tt> </font></td><td valign=top><font face=Helvetica,Arial>return value for successful program execution (value <tt>0</tt>)</font></td></tr>
<tr><td valign=top><font face=Helvetica,Arial><tt>EXIT_FAILURE</tt> </font></td><td valign=top><font face=Helvetica,Arial>return value for failed program execution (value <tt>-1</tt>)</font></td></tr>
</table>
<p>
<b>See also</b> <a href=84.htm>RUN</a>
<p>
<dl>
<dt>
<b>Description</b>
<dd>
The <tt>exit</tt> function terminates execution of a User Language Program.<br>
If an integer <tt>result</tt> is given it will be used as the
<a href=130.htm>return value</a> of the program.<br>
If a string <tt>command</tt> 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 <tt>EXIT_SUCCESS</tt>.
</dl>
<hr>
<table width=100% cellspacing=0 border=0><tr><td align=left><font face=Helvetica,Arial>
<a href=index.htm>Index</a>
</font></td><td align=right><font face=Helvetica,Arial size=-1>
<i>Copyright © 2005 CadSoft Computer GmbH</i>
</font></td></tr></table>
<hr>
</font>
</body>
</html>
|