From 94d1de557fbda771833e229ea00bbf6766ebe282 Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 12 Sep 2025 15:25:20 +0200 Subject: [PATCH] feat(convert/atou): adding the skip of the whitespace at the start - Wasn't using the function isspace :). --- convert/ft_atou.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/convert/ft_atou.c b/convert/ft_atou.c index 5385e94..f13ba9c 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/08 10:16:01 by rparodi ### ########.fr */ +/* Updated: 2025/09/12 15:24:43 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */ @@ -26,6 +26,8 @@ size_t ft_atou(const char *nptr) if (!nptr) return (0); + while (ft_check_space(nptr[i])) + i++; i = 0; number = 0; while (nptr[i])