sieve_get_hash_item

March 26, 2020 Contributors

Name

sieve_get_hash_item — Get the specified hash item

Synopsis

#include "sieve/ecsieve.h"

| int **sieve_get_hash_item** ( | hash, |   |
|   | key, |   |
|   | arg); |   |

SIEVEARGS * <var class="pdparam">hash</var>;
const char * <var class="pdparam">key</var>;
SIEVEARGS ** <var class="pdparam">arg</var>;

Description

Get the specified hash item.

You must call sieve_arg_delref when you are done using the item.

Parameters

hash

A pointer to the ec_hash_table of the SIEVETOKEN value of the specified SIEVEARG.

key

The key to the hash item you wish to return.

arg

The value of the specified key.

Return Value

On success this function returns 1; on failure, 0.

Threading

It is legal to call this function in any thread.

See Also

“ec_hash_table”, sieve_set_hash_item and Section 68.76, “SIEVEARGS (sieve_ast)”