lldiv()

Computes the long long integer quotient and remainder.

  #include <stdlib.h>
  
  lldiv_t lldiv(long long numer, long long denom);    
Parameter

numer

The numerator.

denom

The denominator.

Remarks

The lldiv_t type is defined in div_t.h as typedef struct { long long quot, rem; } lldiv_t;

lldiv() divides denom into numer and returns the quotient and remainder as a lldiv_t type.

This facility is not specified in the ISO/IEC standards. It is an EWL extension of the standard libraries