Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 821 Bytes

exit-success-exit-failure.md

File metadata and controls

27 lines (20 loc) · 821 Bytes
description title ms.date f1_keywords helpviewer_keywords
Learn more about: EXIT_SUCCESS, EXIT_FAILURE
EXIT_SUCCESS, EXIT_FAILURE
06/25/2018
EXIT_FAILURE
EXIT_SUCCESS
STDLIB/EXIT_FAILURE
STDLIB/EXIT_SUCCESS
EXIT_SUCCESS constant
EXIT_FAILURE constant

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