int main(int ac, char **av, char **env) { char **env_cpy; char **path_cpy; int count; count = 0; env_cpy = NULL; path_cpy = NULL; av = NULL; env_cpy = tab_dup(env); signal(SIGINT, SIG_IGN); if (ac == 1) manage_stdin(env_cpy, path_cpy, count); else return (1); return (0); }
int main(int ac, char **av, char **env) { char **myenv; char *home; size_t len_prompt; myenv = tab_dup(env); lvlup(&myenv); if (ac == 1 && av) { home = get_elem(env, "PWD="); prompt(home); len_prompt = ft_strlen(home) + 2; ft_test(myenv, len_prompt); } else ft_putendl("No arguments needed."); return (0); }