From dd0c485ac4975b7dd6d2e230213be1da50d0a065 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Fri, 18 Sep 2020 16:39:52 +0200 Subject: Removing unnecessary stuff --- src/str/ft_strstr.c | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 src/str/ft_strstr.c (limited to 'src/str/ft_strstr.c') diff --git a/src/str/ft_strstr.c b/src/str/ft_strstr.c deleted file mode 100644 index 4d4d403..0000000 --- a/src/str/ft_strstr.c +++ /dev/null @@ -1,29 +0,0 @@ -/* ************************************************************************** */ -/* */ -/* ::: :::::::: */ -/* ft_strstr.c :+: :+: :+: */ -/* +:+ +:+ +:+ */ -/* By: cacharle +#+ +:+ +#+ */ -/* +#+#+#+#+#+ +#+ */ -/* Created: 2019/10/07 10:15:29 by cacharle #+# #+# */ -/* Updated: 2019/11/20 03:58:32 by cacharle ### ########.fr */ -/* */ -/* ************************************************************************** */ - -#include "libft.h" - -char *ft_strstr(const char *haystack, const char *needle) -{ - size_t needle_len; - - needle_len = ft_strlen(needle); - if (needle_len == 0) - return ((char*)haystack); - while (*haystack) - { - if (ft_strnequ(haystack, needle, needle_len)) - return ((char*)haystack); - haystack++; - } - return (NULL); -} -- cgit