1234567891011121314151617181920212223242526 |
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* ft_strequ.c :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: mazimi <mazimi@student.42.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* Created: 2014/11/06 18:27:18 by mazimi #+# #+# */
- /* Updated: 2014/12/08 15:50:48 by mazimi ### ########.fr */
- /* */
- /* ************************************************************************** */
- #include "libft.h"
- int ft_strequ(char const *s1, char const *s2)
- {
- int i;
- i = -1;
- if (s1 == NULL || s2 == NULL)
- return (0);
- while (s1[++i] || s2[i])
- if (s1[i] != s2[i])
- return (0);
- return (1);
- }
|