Browse Source

-fix: is_valid_identifier

master
narnaud 3 years ago
parent
commit
035728caa5
  1. 6
      utils_2.c

6
utils_2.c

@ -6,7 +6,7 @@
/* By: mea <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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);

Loading…
Cancel
Save