Everything

lldiv


Carries out division of long long type integers and obtains the quotient and remainder.

[Format]

#include <stdlib.h>

lldiv_t lldiv (long long numer, long long denom);

[Parameters]

numer Dividend

denom Divisor

[Return values]

Quotient and remainder of division of numer by denom.

[Remarks]

Type lldiv_t is defined as follows:

typedef struct {

long long quot;

long long rem;

} lldiv_t;