diff options
Diffstat (limited to 'src/minishell.c')
-rw-r--r-- | src/minishell.c | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/minishell.c b/src/minishell.c new file mode 100644 index 0000000..e5b4777 --- /dev/null +++ b/src/minishell.c @@ -0,0 +1,48 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* minishell.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/14 17:19:27 by rbousset #+# #+# */ +/* Updated: 2020/02/14 17:19:29 by rbousset ### ########lyon.fr */ +/* */ +/* ************************************************************************** */ + +#include <libft.h> +#include "minishell.h" + +int +main(int argc, + const char *argv[], + char *envp[]) +{ + t_data *data; + + (void)argc; + (void)argv; + (void)envp; + if (!(data = ft_init_data())) + { + return (1); + } + data->envp = envp; + while (*data->envp) + { + ft_printf("%s\n", *data->envp); + data->envp++; + } + ft_s_destroy(data); + return (0); +} + +/* +** ====== INFO ====== +** Files prefixes info +** ------------------- +** ft_ -> 42 +** s_ -> structs related +** d_ -> defines related +** p_ -> parse related +*/ |