fix des trucs

This commit is contained in:
2024-05-07 17:43:00 +02:00
parent 01496f0587
commit e986d8692b
5 changed files with 20 additions and 9 deletions

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/26 09:06:51 by marde-vr #+# #+# */
/* Updated: 2024/04/18 20:48:54 by marde-vr ### ########.fr */
/* Updated: 2024/05/07 17:26:43 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -78,3 +78,13 @@ void parse_var(t_msh *msh, char *line)
line++;
}
}
void remove_here_doc_file(t_msh *msh)
{
if(msh->here_doc_filename)
{
unlink(msh->here_doc_filename);
free(msh->here_doc_filename);
msh->here_doc_filename = 0;
}
}