summaryrefslogtreecommitdiffstats
path: root/src/ft_e_externs_next.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-23 19:42:46 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-23 19:42:46 +0200
commit312bd95df03672f38df123038f719b113ac07ecc (patch)
tree64fe221fe92c8a677efe2e871e9cd33fe147ae4d /src/ft_e_externs_next.c
parentParsed bin path in $PATH, now time to execve(2) (diff)
download42-minishell-312bd95df03672f38df123038f719b113ac07ecc.tar.gz
42-minishell-312bd95df03672f38df123038f719b113ac07ecc.tar.bz2
42-minishell-312bd95df03672f38df123038f719b113ac07ecc.tar.xz
42-minishell-312bd95df03672f38df123038f719b113ac07ecc.tar.zst
42-minishell-312bd95df03672f38df123038f719b113ac07ecc.zip
execve(2) not quite working
Diffstat (limited to 'src/ft_e_externs_next.c')
-rw-r--r--src/ft_e_externs_next.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ft_e_externs_next.c b/src/ft_e_externs_next.c
index 492d7e5..bf1bb38 100644
--- a/src/ft_e_externs_next.c
+++ b/src/ft_e_externs_next.c
@@ -21,8 +21,8 @@
#include "ft_s_struct.h"
static char
- *ft_get_fullpath(const char *p_path,
- const char *d_name,
+ *ft_get_fullpath(const char p_path[],
+ const char d_name[],
t_msh *msh)
{
char *fullpath;
@@ -43,8 +43,8 @@ static char
}
char
- *ft_search_in_path(const char *com,
- char **envpath,
+ *ft_search_in_path(const char com[],
+ char *envpath[],
t_msh *msh)
{
/* TODO: norme */