summaryrefslogtreecommitdiffstats
path: root/src/p_line.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-27 18:55:07 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-27 18:55:07 +0200
commit487a66394061f2d14a2fa421302966b5442d643f (patch)
tree34237d4e9cb85f94bcefd46f399d2224dff3f6b3 /src/p_line.c
parentCorrect shell prompt (diff)
download42-minishell-487a66394061f2d14a2fa421302966b5442d643f.tar.gz
42-minishell-487a66394061f2d14a2fa421302966b5442d643f.tar.bz2
42-minishell-487a66394061f2d14a2fa421302966b5442d643f.tar.xz
42-minishell-487a66394061f2d14a2fa421302966b5442d643f.tar.zst
42-minishell-487a66394061f2d14a2fa421302966b5442d643f.zip
I couldn't see shit
Diffstat (limited to '')
-rw-r--r--src/p_line.c (renamed from src/ft_p_line.c)22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/ft_p_line.c b/src/p_line.c
index 166b880..4a58537 100644
--- a/src/ft_p_line.c
+++ b/src/p_line.c
@@ -1,7 +1,7 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
-/* ft_p_line.c :+: :+: :+: */
+/* p_line.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
@@ -13,15 +13,15 @@
#include <libft.h>
#include <stdlib.h>
-#include "ft_d_enum.h"
-#include "ft_f_fail.h"
-#include "ft_p_lcom.h"
-#include "ft_p_line.h"
-#include "ft_s_destroy.h"
-#include "ft_s_struct.h"
+#include "d_enum.h"
+#include "f_fail.h"
+#include "p_lcom.h"
+#include "p_line.h"
+#include "s_destroy.h"
+#include "s_struct.h"
void
- ft_p_line(char line[],
+ p_line(char line[],
t_msh *msh)
{
char *ptr;
@@ -42,9 +42,9 @@ void
{
count -= 1;
}
- if (ft_p_lcom(line, count, msh) < 0)
+ if (p_lcom(line, count, msh) < 0)
{
- ft_s_destroy(msh);
- ft_fail_alloc(msh);
+ s_destroy(msh);
+ fail_alloc(msh);
}
}