mirror of
https://codeberg.org/ACME-Corporation/cub3d.git
synced 2025-12-06 09:58:09 +01:00
style: remove maputils header from central includes folder
This commit is contained in:
parent
8ec3f2e11c
commit
7000634228
15 changed files with 181 additions and 95 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue