-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_freear.c
More file actions
27 lines (24 loc) · 1.02 KB
/
Copy pathft_freear.c
File metadata and controls
27 lines (24 loc) · 1.02 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_freear.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rahidalg <rahidalg@student.42madrid.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/07 13:07:05 by rahidalg #+# #+# */
/* Updated: 2024/05/07 13:07:17 by rahidalg ### ########.fr */
/* */
/* ************************************************************************** */
#include "libftprintf.h"
char **ft_freear(char **ptr)
{
size_t i;
i = 0;
while (ptr[i])
{
free(ptr[i]);
i++;
}
free(ptr);
return (0);
}