summaryrefslogtreecommitdiffstats
path: root/libft/src/ft_strtok.c
diff options
context:
space:
mode:
Diffstat (limited to 'libft/src/ft_strtok.c')
-rw-r--r--libft/src/ft_strtok.c21
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));
+}