From d467f6257da4edcdf0683e0edc071d263ca5f52b Mon Sep 17 00:00:00 2001 From: apio Date: Wed, 31 May 2023 22:15:05 +0200 Subject: [PATCH] libc: Define EXIT_* macros and strto(u)ll in stdlib.h --- libc/include/stdlib.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libc/include/stdlib.h b/libc/include/stdlib.h index 02fde3b7..bbbc07d3 100644 --- a/libc/include/stdlib.h +++ b/libc/include/stdlib.h @@ -31,6 +31,9 @@ typedef struct #define RAND_MAX 32767 +#define EXIT_SUCCESS 0 +#define EXIT_FAILURE 1 + #ifdef __cplusplus extern "C" { @@ -93,6 +96,9 @@ extern "C" * endptr if nonnull. */ unsigned long strtoul(const char* str, char** endptr, int base); +#define strtoll strtol +#define strtoull strtoul + /* Return the next pseudorandom number. */ int rand();