libc: Define EXIT_* macros and strto(u)ll in stdlib.h

This commit is contained in:
apio 2023-05-31 22:15:05 +02:00
parent 5c68d50070
commit d467f6257d
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

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