OrionLibC
Barry Importing existing Orion LibC 03048a9 (2 years, 2 months ago)diff --git a/include/stdlib.h b/include/stdlib.h new file mode 100644 index 0000000..b1265c2 --- /dev/null +++ b/include/stdlib.h @@ -0,0 +1,25 @@ +#ifndef _STDLIB_H +#define _STDLIB_H + +#define EXIT_SUCCESS 0 +#define EXIT_FAILURE 1 + +#ifdef __cplusplus +extern "C" { +#endif + +_Noreturn void abort(void); +int atexit(void (*)(void)); +int atoi(const char *); +void free(void *); +char *getenv(const char *); +void *malloc(size_t); +void *calloc(size_t, size_t); +_Noreturn void exit(int status); +int abs(int); + +#ifdef __cplusplus +} +#endif + +#endif