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