|
Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
|
#include <stdlib.h>
Go to the source code of this file.
Functions | |
| div_t | div (int num, int denom) |
| Computes both the quotient and the remainder of the division of the numerator x by the denominator y. More... | |
| div_t div | ( | int | x, |
| int | y | ||
| ) |
Computes both the quotient and the remainder of the division of the numerator x by the denominator y.
Computes both the quotient and the remainder of the division of the numerator x by the denominator y.
| x | integer values |
| y | integer values |
If either the remainder or the quotient cannot be represented, the behavior is undefined.
Definition at line 35 of file div.c.
References div_t::quot, and div_t::rem.