kern
annotate src/klibc/stdlib.h @ 95:ec62cbe00b55
whatever
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 11 Dec 2011 21:15:35 +0200 |
parents | bdd9bf70269d |
children |
rev | line source |
---|---|
nuclear@0 | 1 #ifndef STDLIB_H_ |
nuclear@0 | 2 #define STDLIB_H_ |
nuclear@0 | 3 |
nuclear@0 | 4 #include <inttypes.h> |
nuclear@0 | 5 |
nuclear@0 | 6 typedef int32_t ssize_t; |
nuclear@0 | 7 typedef uint32_t size_t; |
nuclear@0 | 8 |
nuclear@5 | 9 int atoi(const char *str); |
nuclear@5 | 10 long atol(const char *str); |
nuclear@91 | 11 long strtol(const char *str, char **endp, int base); |
nuclear@5 | 12 |
nuclear@5 | 13 void itoa(int val, char *buf, int base); |
nuclear@5 | 14 void utoa(unsigned int val, char *buf, int base); |
nuclear@5 | 15 |
nuclear@28 | 16 /* defined in malloc.c */ |
nuclear@28 | 17 void *malloc(size_t sz); |
nuclear@28 | 18 void free(void *ptr); |
nuclear@28 | 19 |
nuclear@0 | 20 #endif /* STDLIB_H_ */ |