summaryrefslogtreecommitdiffstats
path: root/src/ft_f_fail.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-21 18:34:29 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-21 18:34:29 +0200
commit92c184c047323fb557d98c4d7e7c884e474c762e (patch)
tree8dc8b78b812b93aaeffc19d0dbbfa1bee24484f3 /src/ft_f_fail.c
parentMessy echo (diff)
download42-minishell-92c184c047323fb557d98c4d7e7c884e474c762e.tar.gz
42-minishell-92c184c047323fb557d98c4d7e7c884e474c762e.tar.bz2
42-minishell-92c184c047323fb557d98c4d7e7c884e474c762e.tar.xz
42-minishell-92c184c047323fb557d98c4d7e7c884e474c762e.tar.zst
42-minishell-92c184c047323fb557d98c4d7e7c884e474c762e.zip
Builtin exit is bav
Diffstat (limited to '')
-rw-r--r--src/ft_f_fail.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ft_f_fail.c b/src/ft_f_fail.c
index aed16d0..3459702 100644
--- a/src/ft_f_fail.c
+++ b/src/ft_f_fail.c
@@ -19,7 +19,7 @@ static void
ft_write_fail(const char concern[],
const char msg[])
{
- ft_dprintf(STDERR_FILENO, "%s: %s\n", concern, msg);
+ ft_dprintf(STDERR_FILENO, "minishell: %s: %s\n", concern, msg);
}
void
@@ -29,6 +29,12 @@ void
}
void
+ ft_fail_too_many_args(const char concern[])
+{
+ ft_write_fail(concern, FT_FAIL_TOO_MANY_ARGS);
+}
+
+void
ft_fail_alloc(void)
{
ft_write_fail("minishell", FT_FAIL_ALLOC);