From c19bd35afdb45e49cebdfd96e7adb1e6fe477f0c Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 30 Jul 2020 20:30:58 +0200 Subject: Double exit no more --- src/f_com.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/f_com.c (limited to 'src/f_com.c') diff --git a/src/f_com.c b/src/f_com.c new file mode 100644 index 0000000..9c4e02a --- /dev/null +++ b/src/f_com.c @@ -0,0 +1,23 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* f_com.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rbousset +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/14 17:19:27 by rbousset #+# #+# */ +/* Updated: 2020/02/14 17:19:29 by rbousset ### ########lyon.fr */ +/* */ +/* ************************************************************************** */ + +#include +#include + +#include "d_define.h" +#include "s_struct.h" + +void + f_fail_command_not_found(const char command[]) +{ + ft_dprintf(STDERR_FILENO, "%s: %s: %s\n", "minishell", command, FT_FAIL_COMMAND_NOT_FOUND); +} -- cgit v1.2.3