1imaxabs(3C) Standard C Library Functions imaxabs(3C)
2
3
4
6 imaxabs - return absolute value
7
9 #include <inttypes.h>
10
11 intmax_t imaxabs(intmax_t j);
12
13
15 The imaxabs() function computes the absolute value of an integer j. If
16 the result cannot be represented, the behavior is undefined.
17
19 The imaxabs() function returns the absolute value.
20
22 No errors are defined.
23
25 The absolute value of the most negative number cannot be represented in
26 two's complement.
27
29 See attributes(5) for descriptions of the following attributes:
30
31
32
33
34 ┌─────────────────────────────┬─────────────────────────────┐
35 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
36 ├─────────────────────────────┼─────────────────────────────┤
37 │Interface Stability │Standard │
38 ├─────────────────────────────┼─────────────────────────────┤
39 │MT-Level │MT-Safe │
40 └─────────────────────────────┴─────────────────────────────┘
41
43 imaxdiv(3C), attributes(5), standards(5)
44
45
46
47SunOS 5.11 1 Nov 2003 imaxabs(3C)