Function binheap_update_key

Function Documentation

status_t binheap_update_key(struct binheap *heap, size_t index, const void *new_val)

Update the value of key at index i (presumably a decrease, but it doesn’t have to be).

Parameters:
  • heap – The heap handle.

  • index – The index to update.

  • new_val – The new key.

Returns:

status_t.