core: use charset split

This commit is contained in:
Camille Chauvet
2023-04-11 17:01:19 +00:00
parent d06eb570fc
commit 91ef62d8f9
5 changed files with 18 additions and 102 deletions

View File

@ -6,7 +6,7 @@
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/27 13:44:38 by cchauvet #+# #+# */
/* Updated: 2023/04/04 13:50:18 by alouis-j ### ########.fr */
/* Updated: 2023/04/11 16:17:19 by cchauvet ### ########.fr */
/* */
/* ************************************************************************** */
@ -17,7 +17,7 @@ static int ft_args_parse(char *cmd_str, t_cmd *cmd)
char **tab;
size_t i;
tab = ft_split_quoted(cmd_str, ' ');
tab = ft_split_charset_quoted(cmd_str, "\t ");
if (tab == NULL)
return (1);
i = 0;
@ -102,7 +102,7 @@ int ft_cmds_parser(t_data *data, const char *line)
char **tab;
ssize_t i;
tab = ft_split_quoted(line, '|');
tab = ft_split_charset_quoted(line, "|");
if (tab == NULL)
{
ft_eprintf("minishell: malloc failed\n");