mirror of
https://github.com/Ladebeze66/Piscine42.git
synced 2026-11-09 13:17:16 +01:00
Piscine42
This commit is contained in:
20
C01/ex04/ft_ultimate_div_mod.c
Executable file
20
C01/ex04/ft_ultimate_div_mod.c
Executable file
@@ -0,0 +1,20 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_ultimate_div_mod.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: fgras-ca <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2022/12/06 16:55:09 by fgras-ca #+# #+# */
|
||||
/* Updated: 2022/12/07 09:50:31 by fgras-ca ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
void ft_ultimate_div_mod(int *a, int *b)
|
||||
{
|
||||
int swap;
|
||||
|
||||
swap = *a;
|
||||
*a = swap / *b;
|
||||
*b = swap % *b;
|
||||
}
|
||||
Reference in New Issue
Block a user