memory.h (446B)
1 #ifndef MEMORY_H_ 2 #define MEMORY_H_ 3 4 #include <unistd.h> 5 6 // Allocate a block of memory of a specific size on the heap. 7 void *malloc(size_t size); 8 9 // Frees the specified block. 10 void free(void *block); 11 12 // Compute and write the program break to stdout. 13 void print_brk(); 14 15 // Write debug info for a block to stdout. 16 void print_block(void *p); 17 18 // Write debug info for the allocations list to stdout. 19 void print_alloc_list(); 20 21 #endif // MEMORY_H_