summaryrefslogtreecommitdiff
path: root/src/stdlib/ldiv.c
blob: 36eb960b09784f12013d34d9b28a16d2a4e1c296 (plain)
1
2
3
4
5
6
#include <stdlib.h>

ldiv_t ldiv(long num, long den)
{
	return (ldiv_t){ num/den, num%den };
}