diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-18 17:37:43 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-18 17:37:43 +0200 |
commit | 0872d876f187a30b63062f77c17b8e78296b0557 (patch) | |
tree | 1a85d6c9629335592a6d1bb8a5dda5214cde27be /src/f_exec.c | |
parent | Updated TODO (diff) | |
download | 42-minishell-0872d876f187a30b63062f77c17b8e78296b0557.tar.gz 42-minishell-0872d876f187a30b63062f77c17b8e78296b0557.tar.bz2 42-minishell-0872d876f187a30b63062f77c17b8e78296b0557.tar.xz 42-minishell-0872d876f187a30b63062f77c17b8e78296b0557.tar.zst 42-minishell-0872d876f187a30b63062f77c17b8e78296b0557.zip |
Handled execve fail
Diffstat (limited to '')
-rw-r--r-- | src/f_exec.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/f_exec.c b/src/f_exec.c new file mode 100644 index 0000000..3587700 --- /dev/null +++ b/src/f_exec.c @@ -0,0 +1,27 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* f_exec.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/14 17:19:27 by rbousset #+# #+# */ +/* Updated: 2020/02/14 17:19:29 by rbousset ### ########lyon.fr */ +/* */ +/* ************************************************************************** */ + +#include <libft.h> +#include <string.h> +#include <errno.h> +#include <unistd.h> + +#include "s_struct.h" + +void + f_exec(const char fullpath[]) +{ + ft_dprintf(STDERR_FILENO, + "minishell: %s: %s\n", + fullpath, + strerror(errno)); +} |