libft
Functions
ft_lstadd.c File Reference
#include "libft.h"
+ Include dependency graph for ft_lstadd.c:

Go to the source code of this file.

Functions

void ft_lstadd (t_list **alst, t_list *new)
 Adds an element at the beginning of a list. More...
 

Function Documentation

◆ ft_lstadd()

void ft_lstadd ( t_list **  alst,
t_list new 
)

Adds an element at the beginning of a list.

Parameters
alstThe pointer to the first link of a list
newThe link to add at the beginning of the list

Definition at line 22 of file ft_lstadd.c.