FENIX_libc/stdlib/div.c

9 lines
132 B
C
Raw Normal View History

2020-12-01 23:40:03 +00:00
#include <stdlib.h>
div_t div(int x, int y) {
div_t ret_val;
ret_val.quot = x / y;
ret_val.rem = x % y;
return ret_val;
}