Skip to main content

Name

echash_delete_item — Remove the specified item from the hash table

Synopsis

#include "echash.h"

| int **echash_delete_item** ( | ht, |   | |   | k, |   | |   | klen); |   |

ec_hash_table * <var class="pdparam">ht</var>; const char * <var class="pdparam">k</var>; int <var class="pdparam">klen</var>;

Description

This function removes the specified item from the hash table. If keyfree and datafree functions were specified when the table was created, they will be invoked.

Parameters

ht

The hash table.

k

The key to the item that you wish to remove.

klen

The length of the key.

Return Values

On success this function returns 1 and on failure 0.

Threading

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.

See Also

Was this page helpful?