/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* minishell.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: rbousset +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/14 17:19:27 by rbousset #+# #+# */ /* Updated: 2020/02/14 17:19:29 by rbousset ### ########lyon.fr */ /* */ /* ************************************************************************** */ #include #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 ** e_ -> exec related */