-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfree_copied_map.c
35 lines (32 loc) · 1.16 KB
/
free_copied_map.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* free_copied_map.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dvan-der <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/12/15 08:23:51 by dvan-der #+# #+# */
/* Updated: 2022/02/04 12:11:38 by dvan-der ### ########.fr */
/* */
/* ************************************************************************** */
#include "fdf.h"
void free_copied_map(t_fdf *fdf, float ***copied_map)
{
int x;
int y;
x = 0;
y = 0;
while (y < fdf->var->height_map)
{
x = 0;
while (x < fdf->var->width_map)
{
free(copied_map[y][x]);
x++;
}
free(copied_map[y]);
y++;
}
free(copied_map);
return ;
}