Listing 3. Tracing with mtrace()

#include <stdio.h>
#include <stdlib.h>
#include <mcheck.h>

int main() {
  char *ptr;

  mtrace();
  ptr = malloc(10);
  /*  free(ptr); */

}