mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2025-05-10 22:58:45 +02:00
「🏗️」 wip(env): not tested, could not work
This commit is contained in:
@ -3,10 +3,10 @@
|
||||
/* ::: :::::::: */
|
||||
/* split_cmd.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/04 15:00:32 by adjoly #+# #+# */
|
||||
/* Updated: 2024/06/04 13:15:47 by adjoly ### ########.fr */
|
||||
/* Updated: 2024/06/08 18:31:42 by mmoussou ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -15,10 +15,8 @@
|
||||
|
||||
t_cmd *split_cmd(char *cmd_av, t_cmd *cmd)
|
||||
{
|
||||
char *tmp;
|
||||
char **split;
|
||||
|
||||
tmp = cmd_av;
|
||||
split = ft_split(cmd_av, ' ');
|
||||
cmd->cmd = ft_strdup(*split);
|
||||
cmd->argv = split;
|
||||
|
Reference in New Issue
Block a user