1#include <inttypes.h>
2
3imaxdiv_t imaxdiv(intmax_t num, intmax_t den)
4{
5	return (imaxdiv_t){ num/den, num%den };
6}
7