1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
6<META http-equiv="Content-Style-Type" content="text/css">
7<TITLE>OS_Exit</TITLE>
8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
9</HEAD>
10<BODY>
11<H1 align="left">OS_Exit <img src="../../image/NTR.gif" align="middle"><img src="../../image/TWL.gif" align="middle"></H1>
12<H2>Syntax</H2>
13<DL>
14<DD><CODE>#include &lt;nitro/os.h&gt;</CODE><BR> <BR> <CODE>void OS_Exit( int status );</CODE>
15</DL>
16<H2>Arguments</H2>
17<TABLE border="1">
18  <TBODY>
19    <TR>
20<TD><CODE>status</CODE></TD>
21<TD>Exit status</TD>
22    </TR>
23  </TBODY>
24</TABLE>
25<H2>Return Values</H2>
26<P>None.</P>
27<H2>Description</H2>
28<P>Displays the reason for termination, puts the CPU in HALT status, and loops.</P>
29<P>There is no return from this function. The <A href="OS_Terminate.html"><CODE>OS_Terminate</CODE></A> function is called internally.)</P>
30<P>The status given in <CODE>status</CODE> will also appear when he termination message is displayed.</P>
31<P>If this function is called when using the <A href="../../tools/loadrun.html"><CODE>loadrun</CODE></A>, <A href="../../tools/nitrorun.html"><CODE>nitrorun</CODE></A>, or <A href="../../tools/loadrunTWL.html"><CODE>loadrun.TWL</CODE></A> function, the termination message appears, and control is then returned to the prompt on the console.</P>
32<H2>See Also</H2>
33<P><A href="OS_Terminate.html"><CODE>OS_Terminate</CODE></A><BR> <A href="../../tools/loadrun.html"><CODE>loadrun</CODE></A><BR> <A href="../../tools/nitrorun.html"><CODE>nitrorun</CODE></A><BR> <A href="../../tools/loadrunTwl.html"><CODE>loadrun.TWL</CODE></A></P>
34<H2>Revision History</H2>
35<P>2008/05/29 Added information on <A href="../../tools/loadrunTWL.html"><CODE>loadrun.TWL</CODE></A>.<BR> 2004/08/31 Initial version.</P>
36<hr><p>CONFIDENTIAL</p></body>
37</HTML>