libc: Define EXIT_* macros and strto(u)ll in stdlib.h
This commit is contained in:
parent
5c68d50070
commit
d467f6257d
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user