Go forward to malloc
Go backward to labs
Go up to Stdlib
Go to the top op libc
`ldiv'--divide two long integers
ldiv_t ldiv(long N, long D);
Divide N/D, returning quotient and remainder as two long integers in a
The result is represented with the structure
where the `quot' field represents the quotient, and `rem' the
remainder. For nonzero D, if ``R = ldiv(N,D);'' then N equals ``R.rem
To divide `int' rather than `long' values, use the similar function
`ldiv' is ANSI.
No supporting OS subroutines are required.
Created Mon Nov 8 17:42:53 2004 on tillpc with info_to_html version 0.9.6.