diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-28 15:09:25 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-28 15:09:25 +0200 |
commit | abec91e56b179d9d327da2d3d9ae960f5260e14f (patch) | |
tree | b59ef461abb50a1e81c8bd5350d6391711a2af05 /src/ft_f_chdir.c | |
parent | Ok cd (diff) | |
download | 42-minishell-abec91e56b179d9d327da2d3d9ae960f5260e14f.tar.gz 42-minishell-abec91e56b179d9d327da2d3d9ae960f5260e14f.tar.bz2 42-minishell-abec91e56b179d9d327da2d3d9ae960f5260e14f.tar.xz 42-minishell-abec91e56b179d9d327da2d3d9ae960f5260e14f.tar.zst 42-minishell-abec91e56b179d9d327da2d3d9ae960f5260e14f.zip |
Nice functional cd
Diffstat (limited to '')
-rw-r--r-- | src/ft_f_chdir.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/ft_f_chdir.c b/src/ft_f_chdir.c new file mode 100644 index 0000000..1386626 --- /dev/null +++ b/src/ft_f_chdir.c @@ -0,0 +1,27 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_f_chdir.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 "ft_s_struct.h" + +void + ft_fail_chd(const char concern[], + const char path[], + t_msh *msh) +{ + ft_dprintf(STDERR_FILENO, "%s: %s: %s: %s\n", + msh->shname, concern, path, strerror(errno)); +} |