summaryrefslogtreecommitdiffstats
path: root/src/ft_p_line.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_p_line.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/ft_p_line.c b/src/ft_p_line.c
index 70699a6..8d75547 100644
--- a/src/ft_p_line.c
+++ b/src/ft_p_line.c
@@ -10,12 +10,23 @@
/* */
/* ************************************************************************** */
+#include <libft.h>
+#include <stdlib.h>
+#include "ft_d_enum.h"
#include "ft_p_line.h"
#include "ft_s_struct.h"
void
- ft_p_line(char *line, t_msh *msh)
+ ft_p_line(char line[],
+ t_msh *msh)
{
- (void)line;
- (void)msh;
+ int64_t ret;
+
+ if ((ret = ft_strlchr(line, ';') < 0))
+ {
+ if (ft_p_lcom(line, 1, msh) < 0)
+ {
+ exit(FT_RET_ALLOC);
+ }
+ }
}