wnabs(3)

wnabs3

Find absolute value, sign

Usage

#include <wn/wnabs.h>

wn_abs(x)

wn_sign(x)

Overview

wn_abs is a macro which returns the absolute value of x. x may be of any type for which the C <<> operator is defined.

wn_sign returns -1, 0, or 1 according to whether x is <, ==, or > zero. x may be of any type for which the C <<> operator is defined.

Releases

5 releases since Debian 2.1 (Slink); the text changed 1 time.

  1. 2.1–2.2
  2. 3.0–4.0

Author

Will Naylor

From libwn-dev 6.0-17 in Debian 4.0 (Etch). Parsed by carta from the page's man source.