/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: tmaze +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2018/11/23 14:24:53 by tmaze #+# #+# */ /* Updated: 2018/11/26 12:50:19 by tmaze ### ########.fr */ /* */ /* ************************************************************************** */ #include #include #include "../libft/libft.h" static void ft_cntdelstr(void* content, size_t content_size) { ft_strdel((char**)content); content_size = 0; } int main(int argc, char **argv) { extern char **environ; t_list *lst; int i; i = -1; while (environ[++i]) printf("%s\n", environ[i]); if (argc > 1) if ((lst = ft_strsplitstr2())) return (0); }