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();