-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_strequ.c
18 lines (17 loc) · 1017 Bytes
/
ft_strequ.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strequ.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: thakala <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/11/14 18:47:43 by thakala #+# #+# */
/* Updated: 2021/11/26 18:05:53 by thakala ### ########.fr */
/* */
/* ************************************************************************** */
int ft_strequ(char const *s1, char const *s2)
{
while (*s1++ == *s2++ && *(s1 - 1))
;
return (*(s1 - 1) == *(s2 - 1));
}