heap_block_getkey.c 426 B

1234567891011121314151617
  1. #include <string.h>
  2. #include "private.h"
  3. /*--------------------------------------------------------- */
  4. void lub_heap_block_getkey(const void *clientnode, lub_bintree_key_t * key)
  5. {
  6. const lub_heap_free_block_t *block = clientnode;
  7. lub_heap_key_t mykey;
  8. mykey.words = block->tag.words;
  9. mykey.block = block;
  10. memcpy(key, &mykey, sizeof(lub_heap_key_t));
  11. }
  12. /*--------------------------------------------------------- */