From c312e74f95fcfe9bd1e91c092a2d987cb067a075 Mon Sep 17 00:00:00 2001 From: Katharina Fey Date: Sun, 14 Jul 2019 02:00:32 +0100 Subject: Implementing HASH node `remove_key` function --- bowl.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bowl.h') diff --git a/bowl.h b/bowl.h index ae7efe3..ae1321e 100644 --- a/bowl.h +++ b/bowl.h @@ -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 *); -- cgit v1.2.3