diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-21 18:34:29 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-21 18:34:29 +0200 |
commit | 92c184c047323fb557d98c4d7e7c884e474c762e (patch) | |
tree | 8dc8b78b812b93aaeffc19d0dbbfa1bee24484f3 /src/ft_f_fail.c | |
parent | Messy echo (diff) | |
download | 42-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 'src/ft_f_fail.c')
-rw-r--r-- | src/ft_f_fail.c | 8 |
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); |