cp_hashtable_remove_deep(3) - Linux man page
Name
cp_hashtable_remove, cp_hashtable_remove_deep, cp_hashtable_remove_all - remove mappings from a hashtableSynopsis
#include <cprops/hashtable.h>
void *cp_hashtable_remove(cp_hashtable *table, void *key);
int cp_hashtable_remove_deep(cp_hashtable *table, void *key);
int cp_hashtable_remove_all(cp_hashtable *table);
Description
cp_hashtable_remove_deep is the same as cp_hashtable_remove with the COLLECTION_MODE_DEEP bit set.
cp_hashtable_remove_all removes all mappings from the table.
Return Value
cp_hashtable_remove and cp_hashtable_remove_deep return a pointer to the last removed value - which may no longer be valid if the memory it points to is released by the finalization function, or NULL if no mapping was found for key.cp_hashtable_remove_all returns 0 on success or non-zero on locking failure.