Name
echash_destroy — Destroy a hash table created using echash_create
Synopsis
#include "echash.h"
| void **echash_destroy** (
| h, | |
| | keyfree, | |
| | datafree)
; | |
ec_hash_table * <var class="pdparam">h</var>
;
ECHashFreeFunc <var class="pdparam">keyfree</var>
;
ECHashFreeFunc <var class="pdparam">datafree</var>
;
Description
Destroy a hash table created using echash_create
.
- h
-
The hash table that you wish to destroy.
- keyfree
-
A pointer to the hash table keys function.
- datafree
-
A pointer to the hash table data function.
Note
The keyfree and datafree functions are optional. If they do not exist, no function is invoked when data or keys are freed.
This function returns void.
It is legal to call this function in any thread.
The hash table data structure is not thread safe; any simultaneous access needs to be coordinated by the API consumer.