ABS(3C) SysV ABS(3C)
NAME
abs, labs - return integer absolute value
SYNOPSIS
#include <stdlib.h>
int abs(i)
int i;
long int labs (j)
long int j;
DESCRIPTION
abs and labs return the absolute values of their operands.
SEE ALSO
floor(3M).
CAVEAT
In two's-complement representation, the absolute value of the negative
integer with largest magnitude is undefined. Domain/OS SysV ignores this
error.