div3
Return quotient and remainder from division
Usage
#include <stdlib.h>
div_t
div(int numer, int denom);
Library
Standard C Library (libc, -lc)
Overview
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).
Releases
163 releases since Mac OS X 10.0; the text changed 4 times.