From 487a66394061f2d14a2fa421302966b5442d643f Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 27 Jul 2020 18:55:07 +0200 Subject: I couldn't see shit --- src/f_chdir.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/f_chdir.c (limited to 'src/f_chdir.c') diff --git a/src/f_chdir.c b/src/f_chdir.c new file mode 100644 index 0000000..6bb0497 --- /dev/null +++ b/src/f_chdir.c @@ -0,0 +1,27 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* f_chdir.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 +#include + +#include "s_struct.h" + +void + 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)); +} -- cgit v1.2.3 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_chdir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/f_chdir.c') diff --git a/src/f_chdir.c b/src/f_chdir.c index 6bb0497..4623c82 100644 --- a/src/f_chdir.c +++ b/src/f_chdir.c @@ -18,7 +18,7 @@ #include "s_struct.h" void - fail_chd(const char concern[], + f_fail_chd(const char concern[], const char path[], t_msh *msh) { -- cgit v1.2.3