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

# wnmax(3)

min and max functions

## NAME

wn\_min, wn\_max - min and max functions

## SYNOPSIS

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

wn_min(x1, x2)

wn_max(x1, x2)

```

## DESCRIPTION

**wn\_min** is a macro which returns the min of *x1* and *x2*. *x1* and *x2* may be of any type for which the C "\<" operator is defined.

**wn\_max** returns the max of *x1* and *x2*.

## SEE ALSO

wnabs, wninr, wnint

## AUTHOR

Will Naylor
