-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherrors.c
35 lines (31 loc) · 1.3 KB
/
errors.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* errors.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dgomez-m <[email protected] +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/07 23:12:12 by dgomez-m #+# #+# */
/* Updated: 2024/04/10 19:43:00 by dgomez-m ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
void ft_error(char *str, char *aux)
{
ft_putstr_fd(str, STDERR_FILENO);
ft_putstr_fd(aux, STDERR_FILENO);
ft_putstr_fd("\n", STDERR_FILENO);
}
void ft_error_cmd(char *str, char *aux)
{
ft_putstr_fd(str, STDERR_FILENO);
ft_putstr_fd(aux, STDERR_FILENO);
ft_putstr_fd("\n", STDERR_FILENO);
exit(1);
}
void ft_error3(char *str)
{
ft_putstr_fd(str, STDERR_FILENO);
ft_putstr_fd("\n", STDERR_FILENO);
exit(1);
}