-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclose.c
More file actions
27 lines (24 loc) · 1.03 KB
/
Copy pathclose.c
File metadata and controls
27 lines (24 loc) · 1.03 KB
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* close.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mamerlin <mamerlin@student.42roma.it> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/12 19:04:03 by mamerlin #+# #+# */
/* Updated: 2024/03/14 11:51:00 by mamerlin ### ########.fr */
/* */
/* ************************************************************************** */
#include "so_long.h"
int ft_close_matrix(char **matrix)
{
int y;
y = 0;
while (matrix[y] != NULL)
{
free(matrix[y]);
y++;
}
free(matrix);
return (1);
}