Compute the long long integer quotient and remainder.
Compatibility:This function is compatible with the following targets:
|
|
#include <stdlib.h>
ldiv_t ldiv(long long numer, long long denom);Parameters:
Parameters for this facility are:
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 an lldiv_t type.