ldiv()

Syntax
  #include <stdlib.h>
  
  ldiv_t ldiv(long x, long y);

  
Description

ldiv() computes both the quotient and the modulus of the division x/y.

Return

A structure with the results of the division.

See also

div()