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

div_t div(int num, int den)
{
	return (div_t){ num/den, num%den };
}