os/sysroot/usr/include/stdlib.h
2019-08-27 20:07:54 -05:00

20 lines
460 B
C

#ifndef STDLIB_H
#define STDLIB_H
#include <stddef.h>
#include <stdint.h>
#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);
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
__attribute__((noreturn)) void exit(int code);
#endif