dict_add_key_value

March 26, 2020 Contributors

Name

dict_add_key_value — Add the specified key/value pair

Synopsis

#include "ecdict.h"

| void **dict_add_key_value** ( | a, |   |
|   | key, |   |
|   | val); |   |

ECDict <var class="pdparam">a</var>;
const char * <var class="pdparam">key</var>;
const char * <var class="pdparam">val</var>;

Description

Add the specified key/value pair to the dictionary.

Parameters

a

The ECDict. An ECDict is a typedef of an ec_hash_table.

key

The new key.

val

The new value associated with the key.

Return Value

This function returns void.

Threading

It is legal to call this function in any thread.

See Also

“ec_hash_iter”