---
name: "hashkit_value"
section: "3"
platform: "linux"
package: "libmemcached-awesome"
version: "1.1.4-4"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/hashkit_value"
---

# hashkit\_value(3)

libhashkit Documentation

## NAME

hashkit\_value - libhashkit Documentation

## SYNOPSIS

- **#include \<libhashkit-1.0/hashkit.h\>**

  Compile and link with -lhashkit

- **uint32\_t hashkit\_value(hashkit\_st \<#\_CPPv410hashkit\_st\> \*hash, const char \*key, size\_t key\_length)**

  - **Parameters**

    - •

      **hash** -- pointer to an initialized **hashkit\_st** \<#\_CPPv410hashkit\_st\> struct

    - •

      **key** -- the key to genereate a hash of

    - •

      **key\_length** -- the length of the **key** without any terminating zero byte

## DESCRIPTION

The **hashkit\_value()** function generates a 32-bit hash value from the given key and key\_length. The hash argument is an initialized hashkit object, and distribution type and hash function is used from this object while generating the value.

## RETURN VALUE

A 32-bit hash value.

## SEE ALSO

**[libhashkit(3)](/libhashkit/3.md) \<https://linux.die.net/man/3/libhashkit\>** **[hashkit\_create(3)](/hashkit_create/3.md) \<https://linux.die.net/man/3/hashkit\_create\>** **[hashkit\_function(3)](/hashkit_function/3.md) \<https://linux.die.net/man/3/hashkit\_function\>** **[hashkit\_functions(3)](/hashkit_functions/3.md) \<https://linux.die.net/man/3/hashkit\_functions\>**
