diff options
author | Katharina Fey <kookie@spacekookie.de> | 2019-07-14 02:00:32 +0100 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2019-07-14 18:47:18 +0100 |
commit | c312e74f95fcfe9bd1e91c092a2d987cb067a075 (patch) | |
tree | b068a2030ff8fdba31cddd505ddbee20d687571c /bowl.h | |
parent | 6c9c0502798681d7eaa91c81858d3c113e124676 (diff) |
Implementing HASH node `remove_key` function
Diffstat (limited to 'bowl.h')
-rw-r--r-- | bowl.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -82,8 +82,11 @@ err_t bowl_swap_idx(struct bowl *, size_t idx, struct bowl *, struct bowl **); /// Remove a bowl node by it's pointer reference err_t bowl_remove(struct bowl *, struct bowl *); +/// Remove a specific key (relevant for HASH nodes) +err_t bowl_remove_key(struct bowl *, char *key, struct bowl **); + /// Removing a bowl node with a key -err_t bowl_remove_key(struct bowl *, size_t idx, struct bowl **); +err_t bowl_remove_idx(struct bowl *, size_t idx, struct bowl **); /// Cascade-free memory from a bowl node err_t bowl_free(struct bowl *); |