/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* p_args_quotes.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 #include "d_define.h" static void p_arg_squotes(char word[]) { ft_memmove(word, word + 1, ft_strlen(word)); } static void p_arg_dquotes(char word[]) { (void)word; } void p_args_quotes(char *words[]) { char **ptr; ptr = words; while (*ptr != NULL) { if (**ptr == C_SQUOTE) p_arg_squotes(*ptr); else if (**ptr == C_DQUOTE) p_arg_dquotes(*ptr); ptr++; } }