-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherrors.c
23 lines (21 loc) · 1.05 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* errors.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ngasco <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/03/21 16:12:28 by ngasco #+# #+# */
/* Updated: 2022/04/12 10:22:29 by adel-cor ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
int ft_output_loop_err(t_cdata *t_cdata)
{
if (t_cdata->syntax_error == 1)
{
ft_free_quotes_data(t_cdata);
write(2, "Syntax error\n", 13);
}
return (1);
}