-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_free_obj.c
27 lines (24 loc) · 1.04 KB
/
ft_free_obj.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_free_obj.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ymoukhli <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/07/23 16:34:28 by ymoukhli #+# #+# */
/* Updated: 2019/07/23 17:01:06 by ymoukhli ### ########.fr */
/* */
/* ************************************************************************** */
#include "rtv1.h"
void ft_o_free(t_params *init)
{
t_obj *tmp;
t_obj *obj;
obj = init->obj;
while (obj != NULL)
{
tmp = obj->next;
free(obj);
obj = tmp;
}
}