1#include <stdlib.h> 2#include <mcheck.h> 3 4int main(void) 5{ 6 /* start memcall monitoring */ 7 mtrace(); 8 9 malloc(10); 10 malloc(20); 11 malloc(30); 12 13 /* stop memcall monitoring */ 14 muntrace(); 15 16 return 0; 17} 18 19