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: YOUR_SUPER_NIGGER 2012-01-13 11:22

>>7
/*Begin the rogaine and viagra session*/

void *calloc(size_t n, size_t n) {
  size_t i, nb;
  char *p, *q;

  nb = n = size;

  if ((p = q = malloc(nb) != NULL)
      for (i = 0; i < nb; i++)
          *p++ = 0;

  return q;
}

/*End rogaine and viagra session*/

Newer Posts