diff options
Diffstat (limited to 'ft_strstr.c')
| -rw-r--r-- | ft_strstr.c | 20 |
1 files changed, 16 insertions, 4 deletions
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 <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2019/10/07 10:15:29 by cacharle #+# #+# */ +/* Updated: 2019/10/07 10:21:49 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include <stdlib.h> #include <string.h> #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) |
