Everything

div


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

[Format]

#include <stdlib.h>

div_t div (long numer, long denom);

[Parameters]

numer Dividend

denom Divisor

[Return values]

Quotient and remainder of division of numer by denom.

[Remarks]

Type div_t is defined as follows:

typedef struct {

long quot;

long rem;

} div_t;