maxishell
Implementation of a shell for Linux-like systems
|
Go to the source code of this file.
Functions | |
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) |
char * ft_find_path | ( | char * | cmd, |
t_env * | envp | ||
) |
function find the full path of the executed command
--
cmd | string from the first argument |
envp | structure with environment variables |
Definition at line 32 of file utils_1.c.
References ft_free_2d_arr(), ft_split(), ft_strdup(), ft_strncmp(), get_env(), and relative_path_handle().
Referenced by child_process().
|
static |
Definition at line 57 of file utils_1.c.
References ft_strjoin().
Referenced by ft_find_path().