EXIT_SUCCESS, EXIT_FAILURE

Required header

#include <stdlib.h>

Remarks

The EXIT_SUCCESS and EXIT_FAILURE constants are arguments for the exit and _exit functions, and the return values for the atexit and _onexit functions.

Constant Defined value
EXIT_SUCCESS 0
EXIT_FAILURE 1

See also

Global constants