Go forward to ecvtbuf
Go backward to calloc
Go up to Stdlib
Go to the top op libc

`div'--divide two integers

     #include <stdlib.h>
     div_t div(int N, int D);
Divide N/D, returning quotient and remainder as two integers in a
structure `div_t'.
The result is represented with the structure

typedef struct
int quot;
int rem;
} div_t;

   where the `quot' field represents the quotient, and `rem' the
remainder.  For nonzero D, if ``R = div(N,D);'' then N equals ``R.rem +
   To divide `long' rather than `int' values, use the similar function
`div' is ANSI.
   No supporting OS subroutines are required.