-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_lstrm.c
25 lines (22 loc) · 1.05 KB
/
ft_lstrm.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_lstrm.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mesafi <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/04/11 19:58:19 by mesafi #+# #+# */
/* Updated: 2020/01/20 13:29:28 by mesafi ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
#include <stdlib.h>
void ft_lstrm(t_list **head)
{
t_list *tmp;
if (head == NULL || *head == NULL)
return ;
tmp = *head;
*head = (*head)->next;
free(tmp);
}