1<html lang="en"> 2<head> 3<title>_Exit - Untitled</title> 4<meta http-equiv="Content-Type" content="text/html"> 5<meta name="description" content="Untitled"> 6<meta name="generator" content="makeinfo 4.13"> 7<link title="Top" rel="start" href="index.html#Top"> 8<link rel="up" href="Stdlib.html#Stdlib" title="Stdlib"> 9<link rel="next" href="a64l.html#a64l" title="a64l"> 10<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> 11<meta http-equiv="Content-Style-Type" content="text/css"> 12<style type="text/css"><!-- 13 pre.display { font-family:inherit } 14 pre.format { font-family:inherit } 15 pre.smalldisplay { font-family:inherit; font-size:smaller } 16 pre.smallformat { font-family:inherit; font-size:smaller } 17 pre.smallexample { font-size:smaller } 18 pre.smalllisp { font-size:smaller } 19 span.sc { font-variant:small-caps } 20 span.roman { font-family:serif; font-weight:normal; } 21 span.sansserif { font-family:sans-serif; font-weight:normal; } 22--></style> 23<link rel="stylesheet" type="text/css" href="../cs.css"> 24</head> 25<body> 26<div class="node"> 27<a name="_Exit"></a> 28<a name="g_t_005fExit"></a> 29<p> 30Next: <a rel="next" accesskey="n" href="a64l.html#a64l">a64l</a>, 31Up: <a rel="up" accesskey="u" href="Stdlib.html#Stdlib">Stdlib</a> 32<hr> 33</div> 34 35<h3 class="section">2.1 <code>_Exit</code>—end program execution with no cleanup processing</h3> 36 37<p><a name="index-g_t_005fExit-1"></a><strong>Synopsis</strong> 38<pre class="example"> #include <stdlib.h> 39 void _Exit(int <var>code</var>); 40 41</pre> 42 <p><strong>Description</strong><br> 43Use <code>_Exit</code> to return control from a program to the host operating 44environment. Use the argument <var>code</var> to pass an exit status to the 45operating environment: two particular values, <code>EXIT_SUCCESS</code> and 46<code>EXIT_FAILURE</code>, are defined in `<code>stdlib.h</code>' to indicate success or 47failure in a portable fashion. 48 49 <p><code>_Exit</code> differs from <code>exit</code> in that it does not run any 50application-defined cleanup functions registered with <code>atexit</code> and 51it does not clean up files and streams. It is identical to <code>_exit</code>. 52 53 <p><br> 54<strong>Returns</strong><br> 55<code>_Exit</code> does not return to its caller. 56 57 <p><br> 58<strong>Portability</strong><br> 59<code>_Exit</code> is defined by the C99 standard. 60 61 <p>Supporting OS subroutines required: <code>_exit</code>. 62 63 <p><br> 64 65 </body></html> 66 67