18 lines
415 B
C
18 lines
415 B
C
#ifndef MALLOC_H
|
|
#define MALLOC_H
|
|
|
|
#include <gint/kmalloc.h>
|
|
|
|
/* malloc(): Just call kmalloc from gint/kmalloc.h.
|
|
|
|
@size Size of requested block
|
|
Returns address of allocated block, NULL on error. */
|
|
inline void *malloc(size_t size);
|
|
|
|
/* malloc(): Just call kmalloc from gint/kmalloc.h.
|
|
|
|
@ptr Pointer to free
|
|
Free given ptr and reaffect to NULL. */
|
|
inline void free(void *ptr);
|
|
|
|
#endif // MALLOC_H
|