🔨」 fix(env_cmd): fixed strcmp and env cmds

This commit is contained in:
y-syo
2024-06-10 17:03:14 +02:00
parent 815689e72f
commit 0266cee5cb
4 changed files with 48 additions and 30 deletions

View File

@ -6,7 +6,7 @@
/* By: mmoussou <mmoussou@student.42angoulem +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/01 22:03:09 by mmoussou #+# #+# */
/* Updated: 2024/01/11 18:03:15 by mmoussou ### ########.fr */
/* Updated: 2024/06/10 16:37:38 by mmoussou ### ########.fr */
/* */
/* ************************************************************************** */
@ -23,5 +23,5 @@ int ft_strcmp(const char *s1, const char *s2)
return (((unsigned char *)s1)[i] - ((unsigned char *)s2)[i]);
i++;
}
return (0);
return (((unsigned char *)s1)[i] - ((unsigned char *)s2)[i]);
}