NAME | SYNOPSIS | DESCRIPTION | ATTRIBUTES | SEE ALSO | STANDARDS
#include <stdlib.h>ldiv_t ldiv(long num, long denom);
The ldiv function computes the value num/denom and returns the quotient and remainder in a structure named ldiv_t which contains two long integer members named quot and rem.
When an input of zero is applied to the denom parameter, the behavior of the function is undefined.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
The ldiv function conforms to ANSI-C.
NAME | SYNOPSIS | DESCRIPTION | ATTRIBUTES | SEE ALSO | STANDARDS