Standard C Library Functions abs(3C)
NAME
abs, labs, llabs - return absolute value of integer
SYNOPSIS
#include
int abs(int val); long labs(long lval);long long llabs(long long llval);
DESCRIPTION
The abs() function returns the absolute value of its int operand. The labs() function returns the absolute value of its long operand.The llabs() function returns the absolute value of its long
long operand.USAGE
In 2's-complement representation, the absolute value of the
largest magnitude negative integral value is undefined.ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:SunOS 5.11 Last change: 24 Jul 2002 1
Standard C Library Functions abs(3C)____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| MT-Level | MT-Safe |
|_____________________________|_____________________________|
| Standard | See standards(5). ||_____________________________|_____________________________|
SEE ALSO
attributes(5), standards(5)SunOS 5.11 Last change: 24 Jul 2002 2