DIV(3) | Library Functions Manual | DIV(3) |
div
— return
quotient and remainder from division
Standard C Library (libc, -lc)
#include
<stdlib.h>
div_t
div
(int
numer, int
denom);
The
div
()
function computes the value numer/denom
(numerator/denominator). It returns a structure named
div_t that contains two int
members named quot (quotient) and
rem (remainder).
The div
() function conforms to
ISO/IEC 9899:1999
(“ISO C99”).
November 14, 2001 | Mac OS X 12 |