[OpenBSD]

Manual Page Search Parameters

IMAXDIV(3) Library Functions Manual IMAXDIV(3)

imaxdiv
return quotient and remainder from division

#include <inttypes.h>

imaxdiv_t
imaxdiv(intmax_t num, intmax_t denom);

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.

div(3), ldiv(3), lldiv(3)

The imaxdiv() function conforms to ISO/IEC 9899:1999 (“ISO C99”).
August 14, 2016 OpenBSD-current