From 3ef26113aa47415d606e1ae5648d56271c8aa837 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 2 Sep 2015 17:42:46 +0200 Subject: add EXIT_SUCCESS and EXIT_FAILURE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- include/stdlib.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'include/stdlib.h') diff --git a/include/stdlib.h b/include/stdlib.h index c02e094..f24fbf3 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -35,13 +35,26 @@ /** - * `NULL`'s canonical header is + * `NULL`'s canonical header is . */ #ifndef NULL # define NULL ((void*)0) #endif +/** + * The value a process shall exit with upon + * success completion. + */ +#define EXIT_SUCCESS 0 + +/** + * A standard value a process can exit with + * if it terminates because of failure. + */ +#define EXIT_FAILURE 1 + + #endif -- cgit v1.2.3-70-g09d2