| 123456789101112131415161718192021 |
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* ft_lstadd.c :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: bchanot <bchanot@student.42.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* Created: 2017/12/05 13:31:14 by bchanot #+# #+# */
- /* Updated: 2017/12/08 14:21:18 by bchanot ### ########.fr */
- /* */
- /* ************************************************************************** */
- #include "libft.h"
- void ft_lstadd(t_slist **alst, t_slist *new)
- {
- if (*alst == NULL || new == NULL)
- return ;
- new->next = *alst;
- *alst = new;
- }
|