libft/ft_strequ.c
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strequ.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jlasne <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/03 16:14:53 by jlasne #+# #+# */
/* Updated: 2016/11/03 16:14:59 by jlasne ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_strequ(char const *s1, char const *s2)
{
if (s1 && s2)
{
if (ft_strcmp(s1, s2) == 0)
return (1);
}
else if (s1 == s2)
return (1);
return (0);
}