From 10b4feb67c8af2b099dabd66f948b02e180bae0d Mon Sep 17 00:00:00 2001 From: Cabergs Charles Date: Mon, 7 Oct 2019 11:35:51 +0200 Subject: Normed everything Created a few dummy functions to resolve functions having more than 25 lines. --- ft_strstr.c | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'ft_strstr.c') diff --git a/ft_strstr.c b/ft_strstr.c index 0209de4..f71423f 100644 --- a/ft_strstr.c +++ b/ft_strstr.c @@ -1,13 +1,25 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_strstr.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2019/10/07 10:15:29 by cacharle #+# #+# */ +/* Updated: 2019/10/07 10:21:49 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include #include #include "libft.h" -char *ft_strstr(const char *haystack, const char *needle) +char *ft_strstr(const char *haystack, const char *needle) { - size_t i; - char *cursor; + size_t i; + char *cursor; - cursor = (char*)haystack; + cursor = (char*)haystack; if (!ft_strlen(needle)) return (cursor); while (*cursor) -- cgit