Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

malloc free sizeof

Name: Anonymous 2012-01-13 9:51

How do I implement a simple mallow, free, and widely in ask x86?
How does free know how much to actually free?

Name: Anonymous 2012-01-13 15:53

void *malloc(size_t n)
{
  return sbrk(n);
}

void free(void *p)
{
}


That's what I'm using with my compiler I'm writing, for the moment

Newer Posts