ft_strequ

This commit is contained in:
Tanguy MAZE 2018-04-07 15:19:14 +02:00
parent 10059afd98
commit 6bdeabf9c7
2 changed files with 21 additions and 2 deletions

View File

@ -6,7 +6,7 @@
# By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/04/07 12:47:06 by tmaze #+# #+# #
# Updated: 2018/04/07 15:01:14 by tmaze ### ########.fr #
# Updated: 2018/04/07 15:15:08 by tmaze ### ########.fr #
# #
#******************************************************************************#
@ -53,7 +53,8 @@ SRCS = \
ft_striter.c \
ft_striteri.c \
ft_strmap.c \
ft_strmapi.c
ft_strmapi.c \
ft_strequ.c
OBJS = $(SRCS:.c=.o)
INCLS = -I.

18
ft_strequ.c Normal file
View File

@ -0,0 +1,18 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strequ.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/04/07 15:10:56 by tmaze #+# #+# */
/* Updated: 2018/04/07 15:12:29 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_strequ(char const *s1, char const *s2)
{
return (ft_strcmp(s1, s2) == 0);
}