coalesce.h 302 B

12345678910111213141516
  1. #ifndef COALESCE_H
  2. #define COALESCE_H
  3. #include "heap.h"
  4. /**
  5. * Merges a memory block with its previous one if the latter one is free.
  6. *
  7. * @param ptr The memory block to be checked.
  8. * @param heap The heap of the memory block.
  9. */
  10. void * coalesce(void *ptr, heap_t *heap);
  11. #endif /* COALESCE_H */