---
name: "wnhtbl"
section: "3"
platform: "linux"
package: "libwn-dev"
version: "6.0-17"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/wnhtbl"
---

# wnhtbl(3)

make hash tables for common kinds of keys

## NAME

wn\_mkhashhtab, wn\_mkstrhtab, wn\_mkptrhtab, wn\_mkinthtab - make hash tables for common kinds of keys

## SYNOPSIS

```
#include <wn/wnhtbl.h>

wn_mkhashhtab(&table)
wn_htab table;

wn_mkstrhtab(&table)
wn_htab table;

wn_mkptrhtab(&table)
wn_htab table;

wn_mkinthtab(&table)
wn_htab table;

```

## DESCRIPTION

**wn\_mkhashhtab** allocates a hash table that assumes the key is already hashed (from the current memory group).

**wn\_mkstrhtab** allocates a hash table indexed by null-terminated char strings (from the current memory group).

**wn\_mkptrhtab** allocates a hash table indexed by pointer keys, that is, by the value of the pointer itself (as opposed to what the pointer points to).

**wn\_mkinthtab** allocates a hash table indexed by int keys.

## SEE ALSO

wnhtab, wnhash, wncpy

## AUTHOR

Will Naylor
