imaxdiv3
Returns quotient and remainder
Usage
#include <inttypes.h>
imaxdiv_t
imaxdiv(intmax_t numer, intmax_t denom);
Library
Standard C Library (libc, -lc)
Overview
The imaxdiv() function computes the value of numer, divided by denom. The stored result is returned in the form of the imaxdiv_t type.
The imaxdiv_t type is defined as:
typedef struct {
intmax_t quot; /* Quotient. */
intmax_t rem; /* Remainder. */
} imaxdiv_t;
Releases
145 releases since Mac OS X 10.3; the text changed 1 time.