LLDIV(3) Library Functions Manual LLDIV(3)
NAME
lldivreturn quotient and remainder from division
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <stdlib.h>
lldiv_t
lldiv(long long int num, long long int denom);
DESCRIPTION
The lldiv() function computes the value num/denom and returns the quotient and remainder in a structure named lldiv_t that contains two long long integer members named quot and rem.
SEE ALSO
STANDARDS
The lldiv() function conforms to ISO/IEC 9899:1999 (“ISO C99”).