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.