Skip to main content

Name

echash_store — Add data associated with the specified key

Synopsis

#include "echash.c"

| int **echash_store** ( | h, |   | |   | k, |   | |   | klen, |   | |   | data); |   |

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

Description

Associate data with a specific key.

Parameters

h

The hash table

k

The key.

klen

The length of the key k.

data

The data you wish to store.

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?