From 035728caa504849d1319923e96c3bd253e69c381 Mon Sep 17 00:00:00 2001 From: narnaud Date: Mon, 16 May 2022 12:51:45 +0200 Subject: [PATCH] -fix: is_valid_identifier --- utils_2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils_2.c b/utils_2.c index c5a65f7..07933e8 100755 --- a/utils_2.c +++ b/utils_2.c @@ -6,7 +6,7 @@ /* By: mea +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/05/06 13:15:59 by narnaud #+# #+# */ -/* Updated: 2022/05/16 08:19:28 by narnaud ### ########.fr */ +/* Updated: 2022/05/16 12:49:49 by narnaud ### ########.fr */ /* */ /* ************************************************************************** */ @@ -33,8 +33,8 @@ int is_valid_identifier(char *ident) { while (ident[i]) { - if (!ft_isalpha(ident[i]) && !ft_isdigit(ident[i] - && ident[i] != '_')) + if (!ft_isalpha(ident[i]) && !ft_isdigit(ident[i]) + && ident[i] != '_') { ft_putstr_fd("export: not an identifier: ", 2); ft_putstr_fd(ident, 2);