Divides the numerator by the denominator, computing the quotient and the remainder of two integer values.
#include <stdlib.h> div_t div (int numer, int denom);
numer
denom
A div_t structure, described in STDLIB.H.
The sign of the quotient is the same as that of the mathematical quotient. Its absolute value is the largest integer that is less than the absolute value of the mathematical quotient.
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/stdlib.h | stdlib.h | clib.lib |