-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_strequ.c
More file actions
executable file
·24 lines (22 loc) · 1.08 KB
/
ft_strequ.c
File metadata and controls
executable file
·24 lines (22 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strequ.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: luperez <luperez@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/11/15 19:12:16 by luperez #+# #+# */
/* Updated: 2014/11/17 09:29:57 by luperez ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_strequ(char const *s1, char const *s2)
{
if (s1 == NULL && s2 == NULL)
return (1);
if (s1 == NULL || s2 == NULL)
return (0);
if (ft_strcmp(s1, s2))
return (0);
return (1);
}