IMAXDIV(3) Library Functions Manual IMAXDIV(3)
NAME
imaxdivreturn quotient and remainder from division
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <inttypes.h>
imaxdiv_t
imaxdiv(intmax_t num, intmax_t denom);
DESCRIPTION
The imaxdiv() function divides num by denom and returns the resulting quotient and remainder in a structure named imaxdiv_t that contains two imaxint_t members named quot and rem.
SEE ALSO
STANDARDS
The imaxdiv() function conforms to ISO/IEC 9899:1999 (“ISO C99”).