From 8b6e91bdb56bc01a588718472546f2a88e750b48 Mon Sep 17 00:00:00 2001 From: Charles Date: Fri, 19 Jul 2019 07:04:04 +0200 Subject: c10 done?, c11 moulinetted (ex04, ex06 need correction) --- c11/ex05/main.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'c11/ex05/main.c') diff --git a/c11/ex05/main.c b/c11/ex05/main.c index e234053..c29b6ef 100644 --- a/c11/ex05/main.c +++ b/c11/ex05/main.c @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/07/17 07:29:52 by cacharle #+# #+# */ -/* Updated: 2019/07/17 16:37:31 by cacharle ### ########.fr */ +/* Updated: 2019/07/18 10:38:57 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -34,13 +34,8 @@ int main(int argc, char **argv) { x = ft_atoi(argv[1]); y = ft_atoi(argv[3]); - if (operator_index == 3 && y == 0) - { - - } - if (operator_index == 3 && y == 0) - { - } + if (check_floating_point_error(operator_index, y) == -1) + return (0); ft_putnbr((*operators[operator_index])(x, y)); } ft_putchar('\n'); -- cgit