blob: cbbfc64be825d3edfb23c347da6dc79dd66ebaf0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <inttypes.h>
imaxdiv_t imaxdiv(intmax_t num, intmax_t den)
{
return (imaxdiv_t){ num/den, num%den };
}
#ifdef TEST
int
main(void) {
return 0;
}
#endif
|