/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strnequ.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: bchanot +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2015/11/25 20:03:58 by bchanot #+# #+# */ /* Updated: 2015/11/28 23:33:50 by bchanot ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" int ft_strnequ(char const *s1, char const *s2, size_t n) { if (s1 && s2) { if (ft_strncmp(s1, s2, n) == 0) return (1); } else if (s1 == s2) return (1); return (0); }