From cc41df24e61c341ed58d87f22c35c3d7cca5fb04 Mon Sep 17 00:00:00 2001 From: Raphael Date: Mon, 3 Nov 2025 14:14:32 +0100 Subject: [PATCH] fix(convert/atou): moving the initialiation to the top --- convert/ft_atou.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/convert/ft_atou.c b/convert/ft_atou.c index f13ba9c..d363568 100644 --- a/convert/ft_atou.c +++ b/convert/ft_atou.c @@ -6,7 +6,7 @@ /* By: rparodi +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/11/08 17:22:41 by rparodi #+# #+# */ -/* Updated: 2025/09/12 15:24:43 by rparodi ### ########.fr */ +/* Updated: 2025/11/03 14:12:21 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */ @@ -26,9 +26,9 @@ size_t ft_atou(const char *nptr) if (!nptr) return (0); + i = 0; while (ft_check_space(nptr[i])) i++; - i = 0; number = 0; while (nptr[i]) {