Everything

imaxdiv


Performs "/" and "%" operations for the same operands simultaneously.

[Format]

#include <inttypes.h>

imaxdiv_t imaxdiv(intmax_t n, intmax_t d);

[Parameters]

n The left hand side operand of "/" or "%" operator

d The right hand side operand of "/" or "%" operator

[Return values]

An object typed as struct imaxdiv_t, which has members quot (the quotient) and rem (the remainder).