summaryrefslogtreecommitdiffstats
path: root/src/ft_exec.c
blob: 31fcaf2e7d1a2b047fc2568f7e8047c1cb23b549 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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));
	return (0);
}