variables d'environnement dans le parsing

This commit is contained in:
Tom Moron
2024-02-09 14:42:03 +01:00
parent 9b80cc758f
commit 22403b127e
13 changed files with 382 additions and 59 deletions

View File

@ -6,7 +6,7 @@
/* By: tomoron <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/06 20:46:19 by tomoron #+# #+# */
/* Updated: 2024/02/06 22:09:09 by tomoron ### ########.fr */
/* Updated: 2024/02/08 12:42:12 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -29,3 +29,12 @@ t_cmd *ft_cmd_add_back(t_cmd *cmd, char *token)
current->next = res;
return (cmd);
}
void ft_free_cmd(t_cmd *cmd)
{
if(cmd && cmd->next)
ft_free_cmd(cmd->next);
if(cmd)
free(cmd->token);
free(cmd);
}