ldiv3
Return quotient and remainder from division
Usage
#include <stdlib.h>
ldiv_t
ldiv(long numer, long denom);
Library
Standard C Library (libc, -lc)
Overview
The ldiv() function computes the value numer/denom (numerator/denominator). Ir returns the quotient and remainder in a structure named ldiv_t that contains two long members named quot and rem.
Releases
163 releases since Mac OS X 10.0; the text changed 4 times.