1imaxdiv(3C)              Standard C Library Functions              imaxdiv(3C)
2
3
4

NAME

6       imaxdiv - return quotient and remainder
7

SYNOPSIS

9       #include <inttypes.h>
10
11       imaxdiv_t imaxdiv(imaxdiv_t numer, imaxdiv_t denom);
12
13

DESCRIPTION

15       The  imaxdiv()  function  computes numer / denom and numer % denom in a
16       single operation.
17

RETURN VALUES

19       The imaxdiv() function returns a structure of type imaxdiv_t,  compris‐
20       ing  both  the  quotient  and the remainder. The structure contains (in
21       either order) the members quot (the quotient) and rem (the  remainder),
22       each of which has type intmax_t. If either part of the result cannot be
23       represented, the behavior is undefined.
24

ERRORS

26       No errors are defined.
27

ATTRIBUTES

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

SEE ALSO

43       imaxabs(3C),   attributes(5), standards(5)
44
45
46
47SunOS 5.11                        1 Nov 2003                       imaxdiv(3C)
Impressum