You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
304 B
C
18 lines
304 B
C
#ifndef H_MALLOC
|
|
#define H_MALLOC
|
|
|
|
typedef unsigned int size_t;
|
|
|
|
typedef struct malloc_info {
|
|
void* allocate_memory_end;
|
|
void* allocate_memory_start;
|
|
} malloc_info;
|
|
|
|
void* malloc(size_t size);
|
|
// int free(void* ptr);
|
|
|
|
void* malloc_stack(size_t size);
|
|
|
|
void malloc_init(malloc_info* info);
|
|
|
|
#endif |