diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-28 14:45:38 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-28 14:45:38 +0200 |
commit | 26debd1a134bfe6b4b400136c75b30d368a39252 (patch) | |
tree | fb16a6befac3470f6e45a139d4f99fb66cd6f469 /src/ft_f_errno.c | |
parent | Removed useless function made obsolete by subst_var_value (diff) | |
download | 42-minishell-26debd1a134bfe6b4b400136c75b30d368a39252.tar.gz 42-minishell-26debd1a134bfe6b4b400136c75b30d368a39252.tar.bz2 42-minishell-26debd1a134bfe6b4b400136c75b30d368a39252.tar.xz 42-minishell-26debd1a134bfe6b4b400136c75b30d368a39252.tar.zst 42-minishell-26debd1a134bfe6b4b400136c75b30d368a39252.zip |
Ok cd
Diffstat (limited to 'src/ft_f_errno.c')
-rw-r--r-- | src/ft_f_errno.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/ft_f_errno.c b/src/ft_f_errno.c new file mode 100644 index 0000000..22ee7a9 --- /dev/null +++ b/src/ft_f_errno.c @@ -0,0 +1,26 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_f_errno.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_f_dump_errno(const char concern[], + t_msh *msh) +{ + ft_dprintf(STDERR_FILENO, "%s: %s: %s\n", + msh->shname, concern, strerror(errno)); +} |