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.1.0 for Windows"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<TITLE>OS_FExit</TITLE> 8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 9</HEAD> 10<BODY> 11<H1 align="left">OS_FExit <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 <nitro/os.h></CODE><BR> 15 <BR> 16 <CODE>void OS_FExit( int console, int status );</CODE> 17</DL> 18<H2>Arguments</H2> 19<TABLE border="1"> 20 <TBODY> 21 <TR> 22 <TD><B><I>console</I></B></TD> 23 <TD>Output window.</TD> 24 </TR> 25 <TR> 26 <TD><EM><B>status</B></EM></TD> 27 <TD>Exit status</TD> 28 </TR> 29 </TBODY> 30</TABLE> 31<H2>Return Values</H2> 32<P>None.</P> 33<H2>Description</H2> 34<P>Displays a termination message, puts the CPU in HALT status, and loops.</P> 35<P>The only difference between this function and <CODE><A href="OS_Exit.html">OS_Exit()</A></CODE> is that this function allows the output destination to be specified. For a description of the rest, refer to the function reference for <CODE><A href="OS_Exit.html">OS_Exit()</A></CODE>.</P> 36<P><B><I>console</I></B> is used to specify the output destination and can take values from 0 to 3, indicating the window number. Specify <CODE>OS_PRINT_OUTPUT_NONE</CODE> to output nothing. Specifying <CODE>OS_PRINT_OUTPUT_CURRENT</CODE> will output to the error output destination that was specified using <CODE><A href="../debug/OS_SetPrintOutput.html">OS_SetPrintOutput()</A></CODE>.</P> 37<H2>See Also</H2> 38<P><CODE><A href="OS_Exit.html">OS_Exit</A>, <A href="../debug/OS_SetPrintOutput.html">OS_SetPrintOutput</A></CODE></P> 39<H2>Revision History</H2> 40<P>2008/05/23 Initial version.</P> 41<hr><p>CONFIDENTIAL</p></body> 42</HTML>