Previous Page
Next Page

lldiv

Performs integer division, returning quotient and remainder

#include <stdlib.h>
lldiv_t lldiv ( long long dividend , long long divisor  );

The parameters of lldiv( ) are long long integers, and its return value is a structure of type lldiv_t containing two long long integers. Otherwise, lldiv( ) works the same as the int function div( ).

Example

See the example for div( ) in this chapter.

See Also

div( ), ldiv( ), imaxdiv( )


Previous Page
Next Page