-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_lstadd_front_bonus.c
23 lines (20 loc) · 1.04 KB
/
ft_lstadd_front_bonus.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* :::::::: */
/* ft_lstadd_front.c :+: :+: */
/* +:+ */
/* By: jaberkro <[email protected]> +#+ */
/* +#+ */
/* Created: 2021/10/27 21:08:00 by jaberkro #+# #+# */
/* Updated: 2021/10/28 12:39:50 by jaberkro ######## odam.nl */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_lstadd_front(t_list **lst, t_list *new)
{
new->next = *lst;
*lst = new;
}
/* Adds the element ’new’ at the beginning of the
list.
*/