QDIV(3) OpenBSD Programmer's Manual QDIV(3)NAMEqdiv - return quotient and remainder from division
SYNOPSIS
#include <stdlib.h>
qdiv_t
qdiv(quad_t num, quad_t denom);
DESCRIPTION
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.
SEE ALSOdiv(3), imaxdiv(3), ldiv(3), lldiv(3), math(3)OpenBSD 4.9 May 31, 2007 OpenBSD 4.9