diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-24 16:33:51 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-24 16:33:51 +0200 |
commit | d9af81e9c36b444ad90a5b435c9cecae628a3de1 (patch) | |
tree | 7731d3ec9dda16d7d58fc9cf1a577afa22f2ef4b /libft/src/ft_strtok.c | |
parent | test commit (diff) | |
download | 42-minishell-d9af81e9c36b444ad90a5b435c9cecae628a3de1.tar.gz 42-minishell-d9af81e9c36b444ad90a5b435c9cecae628a3de1.tar.bz2 42-minishell-d9af81e9c36b444ad90a5b435c9cecae628a3de1.tar.xz 42-minishell-d9af81e9c36b444ad90a5b435c9cecae628a3de1.tar.zst 42-minishell-d9af81e9c36b444ad90a5b435c9cecae628a3de1.zip |
Added strtok to libft
Diffstat (limited to '')
-rw-r--r-- | libft/src/ft_strtok.c | 21 |
1 files changed, 21 insertions, 0 deletions
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 <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/14 17:07:12 by rbousset #+# #+# */ +/* Updated: 2020/02/14 17:07:12 by rbousset ### ########lyon.fr */ +/* */ +/* ************************************************************************** */ + +#include <libft.h> + +char + *ft_strtok(char *s, const char *delim) +{ + static char *last; + + return (ft_strtok_r(s, delim, &last)); +} |