/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* p_split.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 static char **p_split_to_semis(const char line[]) { char **words; if ((words = ft_split(line, ';')) == NULL) return (NULL); return (words); } char **p_split_line(const char line[]) { char **words; if ((words = p_split_to_semis(line)) == NULL) return (NULL); return (words); }