From 3086fc662802db86395f439b9ab4ebc44358b5fa Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 3 Jul 2019 18:19:13 +0200 Subject: c01 --- c01/ex03/ft_div_mod.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 c01/ex03/ft_div_mod.c (limited to 'c01/ex03') diff --git a/c01/ex03/ft_div_mod.c b/c01/ex03/ft_div_mod.c new file mode 100644 index 0000000..7a5e784 --- /dev/null +++ b/c01/ex03/ft_div_mod.c @@ -0,0 +1,17 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_div_mod.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2019/07/03 17:52:21 by cacharle #+# #+# */ +/* Updated: 2019/07/03 18:16:18 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + +void ft_div_mod(int a, int b, int *div, int *mod) +{ + *div = a / b; + *mod = a % b; +} -- cgit