libc for the amiga version
[retrocrawl] / src / amiga / libc / stdlib.h
index e0a11dc..ea0a6dc 100644 (file)
@@ -1,6 +1,16 @@
 #ifndef AMIGA_LIBC_STDLIB_H_
 #define AMIGA_LIBC_STDLIB_H_
 
-typedef long size_t;
+#include <stdint.h>
+
+typedef int32_t ssize_t;
+typedef uint32_t size_t;
+
+int atoi(const char *str);
+long atol(const char *str);
+long strtol(const char *str, char **endp, int base);
+
+void itoa(int val, char *buf, int base);
+void utoa(unsigned int val, char *buf, int base);
 
 #endif /* AMIGA_LIBC_STDLIB_H_ */