heap_block_getkey.c 488 B

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