/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strnequ.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: bchanot +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2015/11/25 20:03:58 by bchanot #+# #+# */ /* Updated: 2018/10/29 11:57:01 by bchanot ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" int ft_strnequ(const char *const s1, const char *const s2, size_t n) { if (s1 && s2) { if (ft_strncmp(s1, s2, n) == 0) return (true); } else if (s1 == s2) return (true); return (false); }