1
0

heap_block_from_ptr.c 267 B

123456789
  1. #include "private.h"
  2. /*--------------------------------------------------------- */
  3. lub_heap_block_t *
  4. lub_heap_block_from_ptr(char *ptr)
  5. {
  6. return ((lub_heap_block_t*)&((lub_heap_tag_t*)ptr)[-1]);
  7. }
  8. /*--------------------------------------------------------- */