/* ************************************************************************** */ /* */ /* :::::::: */ /* parser_new_command.c :+: :+: */ /* +:+ */ /* By: qmennen +#+ */ /* +#+ */ /* Created: 2025/02/11 16:18:21 by qmennen #+# #+# */ /* Updated: 2025/02/26 15:32:45 by whaffman ######## odam.nl */ /* */ /* ************************************************************************** */ #include "minishell.h" t_command *parser_command_new(t_minishell *minishell, char *cmd) { t_command *command; command = malloc_safe(minishell, sizeof(t_command)); command->args = NULL; command->fd_in = 0; command->fd_out = 1; command->redirect_in = NULL; command->redirect_out = NULL; command->environment = NULL; command->n_fds = 0; command->command = cmd; return (command); }