-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfree_n_exit.c
26 lines (23 loc) · 1018 Bytes
/
free_n_exit.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* free_n_exit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lstorey <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/18 13:58:11 by lstorey #+# #+# */
/* Updated: 2024/05/08 12:06:02 by lstorey ### ########.fr */
/* */
/* ************************************************************************** */
#include "so_long.h"
void free_map(char **map)
{
int y;
y = 0;
while (map[y])
{
free(map[y]);
y++;
}
free(map);
}