ck_ht_hash(3)

ck_ht_hash3

Generate a hash value for a hash table

Usage

#include <ck_ht.h>

void

ck_ht_hash(ck_ht_hash_t *h, ck_ht_t *ht, const void *key, uint16_t key_length);

Library

Concurrency Kit (libck, -lck)

Overview

The ck_ht_hash() function will generate a hash value in the object pointed to by the h argument. The hash value is valid for use in the hash table pointed to by the ht argument for the key (of bytestring type) specified by the key argument. The length of the key is specified by the key_length argument.

Return values

ck_ht_hash() has no return value.

Errors

Behavior is undefined if key is NULL or if ht is uninitialized.

Releases

Unchanged in 5 releases since Debian 8 (Jessie).

  1. 8–13

From libck-dev 0.7.2-6 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.