Namespaces
Variants
Views
Actions

EXIT_SUCCESS, EXIT_FAILURE

From cppreference.com
< c‎ | program
Revision as of 18:39, 31 May 2013 by P12bot (Talk | contribs)

Defined in header <stdlib.h>
#define EXIT_SUCCESS /*implementation defined*/
#define EXIT_FAILURE /*implementation defined*/

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