NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | ATTRIBUTES | SEE ALSO | STANDARDS
$(NUCLEUS_DIR)/lib/classix/libsys.s.a #include <stdlib.h>ldiv_t ldiv(long num, long denom);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
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 | API RESTRICTIONS | DESCRIPTION | ATTRIBUTES | SEE ALSO | STANDARDS