summaryrefslogtreecommitdiffstats
path: root/src/ft_f_fail.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/ft_f_fail.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/f_fail.c (renamed from src/ft_f_fail.c)20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/ft_f_fail.c b/src/f_fail.c
index 3f43bae..aae00fb 100644
--- a/src/ft_f_fail.c
+++ b/src/f_fail.c
@@ -1,7 +1,7 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
-/* ft_f_fail.c :+: :+: :+: */
+/* f_fail.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
@@ -16,11 +16,11 @@
#include <unistd.h>
#include <errno.h>
-#include "ft_d_define.h"
-#include "ft_s_struct.h"
+#include "d_define.h"
+#include "s_struct.h"
static void
- ft_write_fail(const char concern[],
+ write_fail(const char concern[],
const char msg[],
t_msh *msh)
{
@@ -28,14 +28,14 @@ static void
}
void
- ft_fail_no_options(const char concern[],
+ fail_no_options(const char concern[],
t_msh *msh)
{
- ft_write_fail(concern, FT_FAIL_NO_OPTIONS, msh);
+ write_fail(concern, FT_FAIL_NO_OPTIONS, msh);
}
void
- ft_fail_identifier(const char concern[],
+ fail_identifier(const char concern[],
const char identifier[],
t_msh *msh)
{
@@ -44,14 +44,14 @@ void
}
void
- ft_fail_too_many_args(const char concern[],
+ fail_too_many_args(const char concern[],
t_msh *msh)
{
- ft_write_fail(concern, FT_FAIL_TOO_MANY_ARGS, msh);
+ write_fail(concern, FT_FAIL_TOO_MANY_ARGS, msh);
}
void
- ft_fail_alloc(t_msh *msh)
+ fail_alloc(t_msh *msh)
{
ft_dprintf(STDERR_FILENO, "%s: %s\n", msh->shname, strerror(errno));
exit(FT_RET_ALLOC);