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/include | |
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 'libft/include')
-rw-r--r-- | libft/include/libft.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libft/include/libft.h b/libft/include/libft.h index 7019d6b..96615fd 100644 --- a/libft/include/libft.h +++ b/libft/include/libft.h @@ -65,6 +65,14 @@ typedef struct s_printflist char *output; } t_printflist; +typedef struct s_stok +{ + char *spanp; + char *ns; + int32_t c; + int32_t sc; +} t_stok; + /* ** VOID */ @@ -115,6 +123,8 @@ char *ft_nstr(size_t size); char *ft_strsubst(char *str, const char *pattern, const char *subst); +char *ft_strtok_r(char *s, const char *delim, char **last); +char *ft_strtok(char *s, const char *delim); char **ft_split(const char *s, char c); /* |