DOKK / manpages / debian 11 / manpages-pt-dev / ldiv.3.pt
LDIV(3) Linux Programmer's Manual LDIV(3)

ldiv - computes the quotient and remainder of long integer division.

#include <stdlib.h>

ldiv_t ldiv(long int numer, long int denom);

The ldiv() function computes the value numer/denom and returns the quotient and remainder in a structure named ldiv_t that contains two long integer members named quot and rem.

The ldiv_t structure.

SVID 3, BSD 4.3, ISO 9899

div(3)

March 29, 1993 GNU