style: remove maputils header from central includes folder

This commit is contained in:
Khaïs COLIN 2025-07-17 14:33:55 +02:00
parent 8ec3f2e11c
commit 7000634228
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo
15 changed files with 181 additions and 95 deletions

View file

@ -6,7 +6,7 @@
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/07/17 13:59:27 by kcolin #+# #+# */
/* Updated: 2025/07/17 14:27:07 by kcolin ### ########.fr */
/* Updated: 2025/07/17 14:47:25 by kcolin ### ########.fr */
/* */
/* ************************************************************************** */
@ -30,6 +30,21 @@ void free_tab(char **tab)
free(tab);
}
void free_tab_length(char **tab, int length)
{
int i;
if (!tab)
return ;
i = 0;
while (i < length)
{
free(tab[i]);
++i;
}
free(tab);
}
void free_map(t_mapdata *map)
{
free_tab(map->map);