IMAXDIV(3) OpenBSD Programmer's Manual IMAXDIV(3)NAME
imaxdiv - return quotient and remainder from division
SYNOPSIS
#include <inttypes.h>
imaxdiv_t
imaxdiv(intmax_t num, intmax_t denom);
DESCRIPTION
The imaxdiv() function computes the value num/denom and returns the
quotient and remainder in a structure named imaxdiv_t that contains two
intmax_t members named quot and rem.
SEE ALSOdiv(3), ldiv(3), lldiv(3), math(3), qdiv(3)STANDARDS
The imaxdiv() function conforms to ANSI/ISO/IEC 9899-1999 (``ANSI C99'').
OpenBSD 4.9 May 31, 2007 OpenBSD 4.9