div()

Syntax
  #include <stdlib.h>

  
  div_t div(int x, int y);

  
Description

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

Return

A structure with the results of the division.

See also

ldiv()