123456789 |
- /* This function divides parameters a by b and stores the result in the int pointed by
- div. It also stores the remainder of the division of a by b in the int pointed by mod. */
- void ft_div_mod(int a, int b, int *div, int *mod)
- {
- *div = a / b;
- *mod = a % b;
- }
|