imaxdiv(3)
Canonical URL: /imaxdiv.3/
IMAXDIV(3)
Library Functions 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 ALSO
STANDARDS
The imaxdiv() function conforms to
ISO/IEC 9899:1999
(“ISO C99”).
OpenBSD 7.9
September 11, 2022
IMAXDIV(3)
Need conceptual guidance? Continue in the OpenBSD Handbook.