musl-tcc/src/stdlib/div.c

7 lines
90 B
C

#include <stdlib.h>
div_t div(int num, int den)
{
return (div_t){ num/den, num%den };
}