Namespaces
Variants
Views
Actions

EXIT_SUCCESS, EXIT_FAILURE

From cppreference.com
< c‎ | program
Revision as of 18:51, 2 November 2012 by P12bot (Talk | contribs)

Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <stdlib.h>
</td>

<td></td> <td></td> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td class="t-dcl-nopad">
#define EXIT_SUCCESS /*implementation defined*/
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td class="t-dcl-nopad">
#define EXIT_FAILURE /*implementation defined*/
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end

The EXIT_SUCCESS and EXIT_FAILURE macros expand into an integral expression and indicate program execution status.

Constant Explanation
EXIT_SUCCESS successful execution of a program
EXIT_FAILURE unsuccessful execution of a program

See also

C++ documentation for EXIT_SUCCESS, EXIT_FAILURE