QDIV(3) BSD Programmer's Manual QDIV(3)
qdiv - return quotient and remainder from division
#include <stdlib.h> qdiv_t qdiv(quad_t num, quad_t denom);
The qdiv() function computes the value num/denom and returns the quotient and remainder in a structure named qdiv_t that contains two quad integer members named quot and rem.
div(3), ldiv(3), math(3) MirBSD #10-current June 29, 1991 1