-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutils.c
23 lines (20 loc) · 1.08 KB
/
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* utils.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: abertran <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/05/09 13:26:19 by abertran #+# #+# */
/* Updated: 2023/05/09 13:26:19 by abertran ### ########.fr */
/* */
/* ************************************************************************** */
#include "pipex.h"
void error(void)
{
perror("\033[31mError");
exit(EXIT_FAILURE);
}
/* Takes the command and send it to find_path
before executing it. */
void execute(char *argv, char **envp)