Name: Anonymous 2016-01-08 14:23
https://matt.sh/howto-c
Very good read for anyone that wants to write this outdated language in 2016.
Very good read for anyone that wants to write this outdated language in 2016.
static char mem[~0U];
static size_t nalloc;
void *malloc(size_t n)
{
void *p = mem+nalloc;
nalloc += n;
return p;
}
void free(void *p)
{
// no-op
}