2019-02-09 12:52:45 -06:00
|
|
|
#ifndef STDLIB_H
|
|
|
|
#define STDLIB_H
|
|
|
|
|
|
|
|
#include <stddef.h>
|
2019-08-25 17:32:08 -05:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2019-02-09 12:52:45 -06:00
|
|
|
#define EXIT_SUCCESS 0
|
|
|
|
#define EXIT_FAILURE 1
|
|
|
|
|
|
|
|
void* malloc(size_t size);
|
|
|
|
void* realloc(void *mem, size_t new_sz);
|
|
|
|
void free(void* mem);
|
2019-08-27 20:07:54 -05:00
|
|
|
void abort(void); // GCC required
|
|
|
|
int atexit(void (*func)(void)); // GCC required
|
|
|
|
int atoi(const char *str); // GCC required
|
|
|
|
char *getenv(const char *name); // GCC required
|
2019-08-26 07:43:25 -05:00
|
|
|
__attribute__((noreturn)) void exit(int code);
|
2019-02-09 12:52:45 -06:00
|
|
|
|
|
|
|
#endif
|