hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/sysroot/usr/include/stdlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysroot/usr/include/stdlib.h')
-rw-r--r--sysroot/usr/include/stdlib.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/sysroot/usr/include/stdlib.h b/sysroot/usr/include/stdlib.h
new file mode 100644
index 0000000..7950258
--- /dev/null
+++ b/sysroot/usr/include/stdlib.h
@@ -0,0 +1,17 @@
+#ifndef _STDLIB_H
+#define _STDLIB_H
+
+#include <stddef.h>
+
+void* malloc(size_t length);
+void free(void* pointer);
+void* calloc(size_t count, size_t size);
+void* realloc(void* pointer, size_t length);
+
+void exit(int code) __attribute__((noreturn));
+
+int atoi(const char* string);
+long atol(const char* string);
+int abs(int value);
+
+#endif