Standard C Library Functions imaxabs(3C)
NAME
imaxabs - return absolute value
SYNOPSIS
#include
intmax_t imaxabs(intmax_t j);
DESCRIPTION
The imaxabs() function computes the absolute value of an
integer j. If the result cannot be represented, the behavior is undefined.RETURN VALUES
The imaxabs() function returns the absolute value.
ERRORS
No errors are defined.USAGE
The absolute value of the most negative number cannot be represented in two's complement.ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| MT-Level | MT-Safe |
|_____________________________|_____________________________|
| Standard | See standards(5). ||_____________________________|_____________________________|
SEE ALSO
imaxdiv(3C), attributes(5), standards(5)SunOS 5.11 Last change: 1 Nov 2003 1