6 #define RAND_MAX 2147483647
8 #define abs(x) __builtin_abs(x)
10 int atoi(const char *str);
11 long atol(const char *str);
12 long strtol(const char *str, char **endp, int base);
14 void itoa(int val, char *buf, int base);
15 void utoa(unsigned int val, char *buf, int base);
17 void qsort(void *arr, size_t count, size_t size, int (*cmp)(const void*, const void*));
20 int rand_r(unsigned int *seedp);
21 void srand(unsigned int seed);
23 /* defined in malloc.c */
24 /*void *malloc(size_t sz);
25 void *calloc(size_t num, size_t sz);
26 void *realloc(void *ptr, size_t sz);
30 #endif /* STDLIB_H_ */