summaryrefslogtreecommitdiffstats
path: root/src/ft_exec.c
blob: b9d50cfd629e300544cb365ef156b84ead3ff7ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <libft.h>
#include <minishell.h>
#include <unistd.h>

int
ft_exec(char **app)
{
	uint8_t i;

	i = 0;
	while (app[i])
		i++;
	return (execve(app[0] + 2, app, NULL));
}