diff options
-rw-r--r-- | src/ft_s_init.c | 1 | ||||
-rw-r--r-- | src/ft_s_lcom.c | 14 | ||||
-rw-r--r-- | src/ft_s_lcom.h | 18 |
3 files changed, 32 insertions, 1 deletions
diff --git a/src/ft_s_init.c b/src/ft_s_init.c index 2d55e88..c9e4845 100644 --- a/src/ft_s_init.c +++ b/src/ft_s_init.c @@ -34,5 +34,6 @@ t_msh msh->ret = 0; ft_m_funptr(msh); msh->lcom = NULL; + msh->lcom_head = msh->lcom; return (msh); } diff --git a/src/ft_s_lcom.c b/src/ft_s_lcom.c index 9189113..19e503b 100644 --- a/src/ft_s_lcom.c +++ b/src/ft_s_lcom.c @@ -1,9 +1,21 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_s_lcom.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/14 17:19:27 by rbousset #+# #+# */ +/* Updated: 2020/02/14 17:19:29 by rbousset ### ########lyon.fr */ +/* */ +/* ************************************************************************** */ + #include <libft.h> #include <stdlib.h> #include "ft_s_struct.h" t_lcom - *ft_lcom_lstnew(const char word[]) + *ft_lcom_new(const char word[]) { t_lcom nlcom; char **words diff --git a/src/ft_s_lcom.h b/src/ft_s_lcom.h index e69de29..186f93d 100644 --- a/src/ft_s_lcom.h +++ b/src/ft_s_lcom.h @@ -0,0 +1,18 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_s_lcom.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/14 17:19:27 by rbousset #+# #+# */ +/* Updated: 2020/02/14 17:19:29 by rbousset ### ########lyon.fr */ +/* */ +/* ************************************************************************** */ + +#ifndef FT_S_LCOM_H +#define FT_S_LCOM_H + +t_com *ft_lcom_new(const char word[]); + +#endif |