From d9af81e9c36b444ad90a5b435c9cecae628a3de1 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 24 Aug 2020 16:33:51 +0200 Subject: Added strtok to libft --- libft/src/ft_strtok.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 libft/src/ft_strtok.c (limited to 'libft/src/ft_strtok.c') diff --git a/libft/src/ft_strtok.c b/libft/src/ft_strtok.c new file mode 100644 index 0000000..e4fde5e --- /dev/null +++ b/libft/src/ft_strtok.c @@ -0,0 +1,21 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_strtok.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rbousset +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/14 17:07:12 by rbousset #+# #+# */ +/* Updated: 2020/02/14 17:07:12 by rbousset ### ########lyon.fr */ +/* */ +/* ************************************************************************** */ + +#include + +char + *ft_strtok(char *s, const char *delim) +{ + static char *last; + + return (ft_strtok_r(s, delim, &last)); +} -- cgit v1.2.3