From bf34b41a15fa79930e19379c68f695b07332f7eb Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Wed, 27 Feb 2019 20:12:42 -0500 Subject: uniform behavior and documentation for (imax|ll|l)div() --- src/stdlib/lldiv.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/stdlib') diff --git a/src/stdlib/lldiv.c b/src/stdlib/lldiv.c index f4835ec2..7487aee2 100644 --- a/src/stdlib/lldiv.c +++ b/src/stdlib/lldiv.c @@ -1,5 +1,7 @@ #include +/** calculate quotient and remainder **/ + lldiv_t lldiv(long long int numer, long long int denom) { lldiv_t d; @@ -8,6 +10,13 @@ lldiv_t lldiv(long long int numer, long long int denom) return d; } +/*** +computes both the quotient and remainder of ARGUMENT(numer) +divided by ARGUMENT(denom). +***/ + /* +UNDEFINED(The result cannot be represented) +RETURN_SUCCESS(a TYPEDEF(ldiv_t) containing both the quotient and remainder) STDC(199901) */ -- cgit v1.2.1