|
|
|
|
|
by bdowling
1570 days ago
|
|
Here's an outline of a toy version: #include <stdlib.h> /* for size_t */
static char data_storage[10000000];
static char *nextp = data_storage;
void *malloc(size_t size)
{
void *p = nextp;
nextp += size;
return p;
}
void free(void *p){}
|
|