diff options
Diffstat (limited to '')
-rw-r--r-- | src/inttypes/div.c | 3 | ||||
-rw-r--r-- | src/stdlib/div.c | 9 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/inttypes/div.c b/src/inttypes/div.c index e0330ec..95b6410 100644 --- a/src/inttypes/div.c +++ b/src/inttypes/div.c @@ -27,7 +27,8 @@ * both the quotient and the remainder. * * @param numerator The numerator. - * @param denominator The denominator. + * @param denominator The denominator, must not be 0 lest + * the process will be killed by SIGFPE. * @return The quotient in `.quot`, and * the remainder in `.rem`. */ diff --git a/src/stdlib/div.c b/src/stdlib/div.c index fb32d53..47d5877 100644 --- a/src/stdlib/div.c +++ b/src/stdlib/div.c @@ -27,7 +27,8 @@ * both the quotient and the remainder. * * @param numerator The numerator. - * @param denominator The denominator. + * @param denominator The denominator, must not be 0 lest + * the process will be killed by SIGFPE. * @return The quotient in `.quot`, and * the remainder in `.rem`. */ @@ -42,7 +43,8 @@ div_t div(int numerator, int denominator) * both the quotient and the remainder. * * @param numerator The numerator. - * @param denominator The denominator. + * @param denominator The denominator, must not be 0 lest + * the process will be killed by SIGFPE. * @return The quotient in `.quot`, and * the remainder in `.rem`. */ @@ -57,7 +59,8 @@ ldiv_t ldiv(long numerator, long denominator) * both the quotient and the remainder. * * @param numerator The numerator. - * @param denominator The denominator. + * @param denominator The denominator, must not be 0 lest + * the process will be killed by SIGFPE. * @return The quotient in `.quot`, and * the remainder in `.rem`. */ |