23 lines
1021 B
C
23 lines
1021 B
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_ultimate_div_mod.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: lfirmin <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2024/02/10 21:09:43 by lfirmin #+# #+# */
|
|
/* Updated: 2024/02/10 21:22:15 by lfirmin ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
void ft_ultimate_div_mod(int *a, int *b)
|
|
{
|
|
int temp;
|
|
int temp1;
|
|
|
|
temp = *a / *b;
|
|
temp1 = *a % *b;
|
|
*a = temp;
|
|
*b = temp1;
|
|
}
|