mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2026-11-27 13:54:52 +01:00
「🔨」 fix: fixed some things.
This commit is contained in:
1 parent
cff9e40005
commit
44bcb15a33
7 files changed
+114
-13
No files matched your search
@@ -0,0 +1,27 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* split_cmd.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/04 15:00:32 by adjoly #+# #+# */
|
||||
/* Updated: 2024/05/04 15:20:29 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "parsing.h"
|
||||
#include "libft.h"
|
||||
|
||||
t_cmd split_cmd(char *cmd_av)
|
||||
{
|
||||
char **split;
|
||||
char **tmp_split;
|
||||
t_cmd cmd;
|
||||
|
||||
split = ft_split(cmd_av, 32);
|
||||
tmp_split = split;
|
||||
cmd.cmd = ft_strdup(*tmp_split);
|
||||
cmd.argv = tmp_split;
|
||||
return (cmd);
|
||||
}
|
||||
Reference in new issue
Block a user