abs(3C)
abs, labs - return integer absolute value
As shipped in IRIX 6.5.7. Unchanged since IRIX 6.5.
NAME abs, labs - return integer absolute value SYNOPSIS #include <stdlib.h> int abs (int i); long int labs (long int i); DESCRIPTION abs and labs return the absolute value of their int or long int operand. SEE ALSO floor(3M). CAVEAT In two's-complement representation, the absolute value of the negative integer with largest magnitude is undefined. In this case, abs (or labs) will generate a SIGFPE.