narnaud
3 years ago
7 changed files with 71 additions and 34 deletions
@ -0,0 +1,25 @@ |
|||||
|
/* ************************************************************************** */ |
||||
|
/* */ |
||||
|
/* ::: :::::::: */ |
||||
|
/* errors.c :+: :+: :+: */ |
||||
|
/* +:+ +:+ +:+ */ |
||||
|
/* By: narnaud <narnaud@student.42.fr> +#+ +:+ +#+ */ |
||||
|
/* +#+#+#+#+#+ +#+ */ |
||||
|
/* Created: 2022/05/06 13:15:59 by narnaud #+# #+# */ |
||||
|
/* Updated: 2022/05/06 13:25:32 by narnaud ### ########.fr */ |
||||
|
/* */ |
||||
|
/* ************************************************************************** */ |
||||
|
|
||||
|
#include "minishell.h" |
||||
|
|
||||
|
int file_error(char *cmd, char *file, char *msg) |
||||
|
{ |
||||
|
ft_putstr_fd("Minishell: ", 2); |
||||
|
ft_putstr_fd(cmd, 2); |
||||
|
ft_putstr_fd(": ", 2); |
||||
|
ft_putstr_fd(file, 2); |
||||
|
ft_putstr_fd(": ", 2); |
||||
|
ft_putstr_fd(msg, 2); |
||||
|
ft_putchar_fd('\n', 2); |
||||
|
return (0); |
||||
|
} |
Loading…
Reference in new issue