-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathswap_lst_helper.c
More file actions
25 lines (22 loc) · 1.06 KB
/
swap_lst_helper.c
File metadata and controls
25 lines (22 loc) · 1.06 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* swap_lst_helper.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mamoussa <mamoussa@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/12/11 13:00:14 by mamoussa #+# #+# */
/* Updated: 2020/12/11 13:02:44 by mamoussa ### ########.fr */
/* */
/* ************************************************************************** */
#include "shell.h"
void ft_lstclearnod(t_cmd *back, t_cmd *next)
{
t_cmd *temp;
temp = back->next;
back->next = next;
free(temp->string);
temp->string = NULL;
free(temp);
temp = NULL;
}