18 lines
976 B
C
18 lines
976 B
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_div_mod.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2022/07/14 18:58:15 by cchauvet #+# #+# */
|
|
/* Updated: 2022/07/18 10:35:36 by cchauvet ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
void ft_div_mod(int a, int b, int *div, int *mod)
|
|
{
|
|
*div = a / b;
|
|
*mod = a % b;
|
|
}
|