labs3
Return absolute value for integer types
Part of abs(3).
Usage
Standard C Library (libc, -lc)
#include <stdlib.h>
int
abs(int i);
long
labs(long i);
long long
llabs(long long i);
#include <inttypes.h>
intmax_t
imaxabs(intmax_t i);
Overview
The abs(), labs(), llabs(), and imaxabs() functions compute the absolute value of i.
Return values
The abs(), labs(), llabs(), and imaxabs() functions return the absolute value.
Releases
87 releases since FreeBSD 2.0.5-RELEASE; the text changed 42 times.