1 
2 #ifndef __STDLIB_H__
3 #define __STDLIB_H__
4 
5 #include <sys/types.h>
6 
7 #ifndef NULL
8 #define NULL    ((void *)0)
9 #endif
10 
11 int atexit(void (*function)(void));
12 void exit(int status);
13 _Noreturn void abort(void);
14 
15 void *calloc(size_t num, size_t sz);
16 void *malloc(size_t sz);
17 void free(void *buf);
18 
19 int atoi(const char *nptr);
20 
21 #endif /* __STDLIB_H__ */
22 
23