div_t div(int numer
Divides numer (numerator) by denom (denominator).
The result is stored in the structure
which has two members:
Where quot is the quotient and rem is the
remainder. In the case of inexact division, quot is
rounded down to the nearest integer. The value numer is
quot * denom + rem.
The value of the division is returned in the structure.