Everything

ldiv


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

[Format]

#include <stdlib.h>

ldiv_t ldiv (long numer, long denom);

[Parameters]

numer Dividend

denom Divisor

[Return values]

Quotient and remainder of division of numer by denom.

[Remarks]

Type ldiv_t is defined as follows:

typedef struct {

long quot;

long rem;

} ldiv_t;