Calculates the quotient and remainder of the division of a long integer.
#include <stdlib.h>
ldiv_t ldiv (
long number,
long denom);
(IN) Specifies the numerator.
(IN) Specifies the denominator.
Returns a structure of type ldiv_t.
The ldiv_t structure has fields for the quotient and the remainder. It has the following syntax:
typedef struct {
long quot;
long rem;
} ldiv_t;