-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_free.c
31 lines (27 loc) · 1.08 KB
/
ft_free.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_free.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: yajallal < yajallal@student.1337.ma > +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/01/13 12:22:22 by yajallal #+# #+# */
/* Updated: 2023/01/13 12:24:57 by yajallal ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_pipex.h"
void ft_free2d(char **str, char *s)
{
int i;
i = 0;
while (str[i])
free(str[i++]);
free(str);
free(s);
str = NULL;
}
void ft_free(char *s1, char *s2)
{
free(s1);
free(s2);
}