aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/ldiv.c
blob: c4181f848c09ca9b444ba14d6a5848d609e3d55e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdlib.h>

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


#ifdef TEST
int
main(void) {
	return 0;
}
#endif