You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
1.1 KiB
25 lines
1.1 KiB
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* 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);
|
|
}
|
|
|