-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexit_utils.c
23 lines (21 loc) · 1.1 KB
/
exit_utils.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* exit_utils.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: abenheni <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/05/15 21:48:07 by abenheni #+# #+# */
/* Updated: 2023/05/15 21:48:16 by abenheni ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
void exit_error(char *arg, char *error, int exit_status)
{
ft_putstr_fd("minishell: exit: ", 2);
ft_putstr_fd(arg, 2);
ft_putstr_fd(":", 2);
ft_putstr_fd(" ", 2);
ft_putstr_fd(error, 2);
exit(exit_status);
}