diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-19 16:59:38 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-19 16:59:38 +0200 |
commit | 49b6183dc0171ac040bdd2faf6f8efa0448567c5 (patch) | |
tree | eaff08562cedef9bf4267b0d17efce0485d2f51e /src/m_minishell.c | |
parent | TODO update (diff) | |
download | 42-minishell-49b6183dc0171ac040bdd2faf6f8efa0448567c5.tar.gz 42-minishell-49b6183dc0171ac040bdd2faf6f8efa0448567c5.tar.bz2 42-minishell-49b6183dc0171ac040bdd2faf6f8efa0448567c5.tar.xz 42-minishell-49b6183dc0171ac040bdd2faf6f8efa0448567c5.tar.zst 42-minishell-49b6183dc0171ac040bdd2faf6f8efa0448567c5.zip |
Cleaner variables handling $0 $1 $2 $3
Diffstat (limited to '')
-rw-r--r-- | src/m_minishell.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/m_minishell.c b/src/m_minishell.c index 6be605a..aac3af7 100644 --- a/src/m_minishell.c +++ b/src/m_minishell.c @@ -23,15 +23,12 @@ #include "s_init.h" #include "s_destroy.h" -int - main(int argc, - char *const argv[], - char *const envp[]) +int main(int argc, char *const argv[], char *const envp[]) { int32_t ret; t_msh *msh; - if ((msh = init_msh(argv, envp)) == NULL) + if ((msh = init_msh(argc, argv, envp)) == NULL) { ft_dprintf(STDERR_FILENO, "%s\n", strerror(errno)); return (FT_RET_ALLOC); |