From f9869d5fdf97b932977f70eac1bc085be6761ee3 Mon Sep 17 00:00:00 2001
From: JozanLeClerc <bousset.rudy@gmail.com>
Date: Mon, 20 Apr 2020 18:52:20 +0200
Subject: Continuing

---
 src/ft_s_init.c |  1 +
 src/ft_s_lcom.c | 14 +++++++++++++-
 src/ft_s_lcom.h | 18 ++++++++++++++++++
 3 files changed, 32 insertions(+), 1 deletion(-)

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
-- 
cgit v1.2.3