| 12345678910111213141516171819202122232425 |
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* ft_strequ.c :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: bchanot <bchanot@students.42.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* Created: 2015/11/25 19:53:56 by bchanot #+# #+# */
- /* Updated: 2015/11/28 23:32:07 by bchanot ### ########.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);
- }
|