From 91f1edf1363ddcfb163c13d11a28bac7ec592402 Mon Sep 17 00:00:00 2001 From: tomoron Date: Fri, 16 Feb 2024 16:13:55 +0100 Subject: [PATCH] modif isnbr --- libft/ft_strisnbr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libft/ft_strisnbr.c b/libft/ft_strisnbr.c index 8dddb93..0d9aff7 100755 --- a/libft/ft_strisnbr.c +++ b/libft/ft_strisnbr.c @@ -6,7 +6,7 @@ /* By: marde-vr +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/02/11 17:14:58 by tomoron #+# #+# */ -/* Updated: 2024/02/16 15:07:30 by marde-vr ### ########.fr */ +/* Updated: 2024/02/16 16:13:38 by tomoron ### ########.fr */ /* */ /* ************************************************************************** */ @@ -14,6 +14,8 @@ int ft_strisnbr(char *str) { if (!str) return (0); + if (*str == '+' || *str == '-') + str++; while (*str) { if (*str < '0' || *str > '9')