about summary refs log tree commit diff
path: root/src/stdlib/imaxdiv.c
blob: b2ce821f51e3e2428e773e2e9eae6c2156157fb6 (plain) (blame)
1
2
3
4
5
6
#include <inttypes.h>

imaxdiv_t imaxdiv(intmax_t num, intmax_t den)
{
	return (imaxdiv_t){ num/den, num%den };
}