Guardian C Library Calls Reference Manual

ldiv
3-104 128833Guardian TNS C Library Calls Reference Manual
Reference to Library Calls
ldiv
The ldiv function computes the long quotient and long remainder that result from the
integral division of its two long arguments.
dividend
specifies the dividend, or numerator, of the integral division equation.
divisor
specifies the divisor, or denominator, of the integral division equation.
Return Value
is a structure of type ldiv_t, which comprises two long members, quot and rem, that
respectively contain the quotient and remainder resulting from the integral division
of dividend by divisor.
#include <stdlibh>
ldiv_t ldiv(long dividend, long divisor);