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