40 while (path[++i] != NULL)
46 if (access(tmp_full_path, F_OK) == 0)
49 return (tmp_full_path);
char * get_env(t_env *envp, const char *key)
void ft_free_2d_arr(char **arr)
char * ft_strjoin(char const *s1, char const *s2)
int ft_strncmp(const char *s1, const char *s2, size_t n)
char ** ft_split(char const *s, char c)
char * ft_strdup(const char *s)
char * ft_find_path(char *cmd, t_env *envp)
function find the full path of the executed command
static void relative_path_handle(char *cmd, char *path, char **tmp_full_path)