/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strequ.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: bchanot +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2015/11/25 19:53:56 by bchanot #+# #+# */ /* Updated: 2018/10/29 11:58:31 by bchanot ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" int ft_strequ(const char *const s1, const char *const s2) { if (s1 && s2) { if (ft_strcmp(s1, s2) == 0) return (true); } else if (s1 == s2) return (true); return (false); }