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 Learn more about: EXIT_SUCCESS, EXIT_FAILURE
title EXIT_SUCCESS, EXIT_FAILURE
ms.date 06/25/2018
f1_keywords
EXIT_FAILURE
EXIT_SUCCESS
STDLIB/EXIT_FAILURE
STDLIB/EXIT_SUCCESS
helpviewer_keywords
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