-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_lstadd_front.c
More file actions
23 lines (20 loc) · 1.04 KB
/
ft_lstadd_front.c
File metadata and controls
23 lines (20 loc) · 1.04 KB
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: farodrig <farodrig@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2020/12/13 20:18:36 by farodrig #+# #+# */
/* Updated: 2020/12/13 20:23:45 by farodrig ######## odam.nl */
/* */
/* ************************************************************************** */
#include "libft.h"
/*
** Adds the element 'new' at the beginning of the list.
*/
void ft_lstadd_front(t_list **list, t_list *new)
{
new->next = list[0];
list[0] = new;
}