NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
ldiv_t ldiv ( long  numer,
long  denom 
)
inline

Integral division.

Returns the integral quotient and remainder of the division of numerator by denominator as a structure of type ldiv_t, which has two members: quot and rem.

Parameters
numerNumerator.
denomDenominator.
Returns
The result is returned by value in a structure defined in cstdlib, which has two members. For ldiv_t, these are, in either order: long quot; long rem.
Examples:
ex_ldiv.nxc.