#include <oskit/c/malloc.h>int morecore(size_t size);
This routine is called directly or indirectly by any of the memory allocation routines in this section when a call to the underlying LMM allocation routine fails. This allows a kernel to add more memory to malloc_lmm as needed.The default version of morecore in the minimal C library just returns zero indicating no more memory was available. Client OSes should override this routine as necessary.
- size
- Size in bytes of memory that should be addeed to malloc_lmm.
Returns non-zero if the indicated amount of memory was added, zero otherwise.