PatchworkOS
Loading...
Searching...
No Matches
imaxdiv.c
Go to the documentation of this file.
1#include <inttypes.h>
2
4{
5 imaxdiv_t result;
6 result.quot = numer / denom;
7 result.rem = numer % denom;
8 return result;
9}
imaxdiv_t imaxdiv(intmax_t numer, intmax_t denom)
Definition imaxdiv.c:3
__INTMAX_TYPE__ intmax_t
Definition inttypes.h:11
intmax_t rem
Definition inttypes.h:17
intmax_t quot
Definition inttypes.h:16