init
This commit is contained in:
22
Correction/C01/ex04/ft_ultimate_div_mod.c
Normal file
22
Correction/C01/ex04/ft_ultimate_div_mod.c
Normal file
@ -0,0 +1,22 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_ultimate_div_mod.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2022/07/18 10:37:49 by cchauvet #+# #+# */
|
||||
/* Updated: 2022/07/19 19:06:46 by cchauvet ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
void ft_ultimate_div_mod(int *a, int *b)
|
||||
{
|
||||
int c;
|
||||
int d;
|
||||
|
||||
c = *a / *b;
|
||||
d = *a % *b;
|
||||
*a = c;
|
||||
*b = d;
|
||||
}
|
Reference in New Issue
Block a user