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

# wnbtrl(3)

create sorted tree for common kinds of keys

## NAME

wn\_mkstrbtree, wn\_mkintbtree, wn\_mkdoublebtree - create sorted tree for common kinds of keys

## SYNOPSIS

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

void wn_mkstrbtree(wn_btree *tree)

void wn_mkintbtree(wn_btree *tree)

void wn_mkdoublebtree(wn_btree *tree)

```

## DESCRIPTION

**wn\_mkstrbtree** allocates a sorted tree indexed by null-terminated char strings (from the current memory group).

**wn\_mkintbtree** allocates a sorted tree indexed by int keys.

**wn\_mkdoublebtree** allocates a sorted tree indexed by double keys. A \<double\> is a long floating-point number.  You should  pass \<&number\> rather than just "number" as the key.

## SEE ALSO

[**wnbtr**(3)](/wnbtr/3.md), [**wncmp**(3)](/wncmp/3.md), [**wncpy**(3)](/wncpy/3.md)

## AUTHOR

Will Naylor
