metal-cos/include/stdlib.h
2023-08-19 22:14:06 -04:00

21 lines
307 B
C

#ifndef __STDLIB_H__
#define __STDLIB_H__
#include <sys/types.h>
#ifndef NULL
#define NULL ((void *)0)
#endif
int atexit(void (*function)(void));
void exit(int status);
void abort(void);
void *calloc(size_t num, size_t sz);
void *malloc(size_t sz);
void free(void *buf);
#endif /* __STDLIB_H__ */