heap_block_from_ptr.c 269 B

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