blob: c17a5867bff19b45ca24bcd2fbaa4831fdfd275b (
plain)
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
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_lstpush_front.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/10/09 09:02:25 by cacharle #+# #+# */
/* Updated: 2019/10/18 12:16:06 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft_lst.h"
/**
** \brief Push node to list front
** \param new Pushed node
*/
void ft_lstpush_front(t_ftlst **alst, t_ftlst *new)
{
if (alst == NULL || new == NULL)
return ;
new->next = *alst;
*alst = new;
}
|