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