IMAXABS(3C) Standard C Library Functions IMAXABS(3C)

NAME


imaxabs - return absolute value

SYNOPSIS


#include <inttypes.h>

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(7) for descriptions of the following attributes:


+--------------------+-----------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+-----------------+
|Interface Stability | Standard |
+--------------------+-----------------+
|MT-Level | MT-Safe |
+--------------------+-----------------+

SEE ALSO


imaxdiv(3C), attributes(7), standards(7)

November 1, 2003 IMAXABS(3C)

tribblix@gmail.com :: GitHub :: Privacy