13 extern u32 (*OSCreateHeap)(
void*,
void*);
14 extern void* (*OSAllocFromHeap)(
u32,
size_t);
15 extern void (*OSFreeToHeap)(
u32,
void*);
93 void*
calloc(
size_t num,
size_t size);
117 void*
realloc(
void* ptr,
size_t size)
118 __attribute__ ((warn_unused_result));
134 void free(
void* ptr);
Data types for the gamecube.
u32 size_t
Definition: gctypes.h:36
void free(void *ptr)
Deallocate memory block.
Definition: system.c:59
void limitGameMemory(void *limit)
limit size of game heap
Definition: system.c:28
void * malloc(size_t size)
Allocate memory block.
Definition: system.c:33
size_t getHeapSize()
Definition: system.c:64
void * calloc(size_t num, size_t size)
Allocate and zero-initialize array.
Definition: system.c:39
uint32_t u32
Definition: gctypes.h:16
void * realloc(void *ptr, size_t size)
Reallocate memory block.
Definition: system.c:47
void initHeap(void *lo, void *hi)
Definition: system.c:21