28 lines
1.1 KiB
C
28 lines
1.1 KiB
C
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* ::: :::::::: */
|
||
|
/* ft_strequ.c :+: :+: :+: */
|
||
|
/* +:+ +:+ +:+ */
|
||
|
/* By: gbrochar <marvin@42.fr> +#+ +:+ +#+ */
|
||
|
/* +#+#+#+#+#+ +#+ */
|
||
|
/* Created: 2015/11/29 08:35:37 by gbrochar #+# #+# */
|
||
|
/* Updated: 2015/11/29 15:47:45 by gbrochar ### ########.fr */
|
||
|
/* */
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
#include "libft.h"
|
||
|
|
||
|
int ft_strequ(char const *s1, char const *s2)
|
||
|
{
|
||
|
int i;
|
||
|
|
||
|
i = 0;
|
||
|
while (s1[i] == s2[i])
|
||
|
{
|
||
|
if (s1[i] == '\0' && s2[i] == '\0')
|
||
|
return (1);
|
||
|
i++;
|
||
|
}
|
||
|
return (0);
|
||
|
}
|