tgrekov-pipex
HIVE pipex May 2024
Loading...
Searching...
No Matches
ft_lstadd_front_bonus.c File Reference

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_lstadd_front_bonus.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/28 01:09:57 by tgrekov #+# #+# */
/* Updated: 2023/11/04 22:24:35 by tgrekov ### ########.fr */
/* */
/* ************************************************************************** */

Definition in file ft_lstadd_front_bonus.c.

#include "libft.h"
Include dependency graph for ft_lstadd_front_bonus.c:

Go to the source code of this file.

Functions

void ft_lstadd_front (t_list **lst, t_list *new)
 Insert node new into the start of the list pointed to by the pointer at lst.
 

Function Documentation

◆ ft_lstadd_front()

void ft_lstadd_front ( t_list **  lst,
t_list new 
)

Insert node new into the start of the list pointed to by the pointer at lst.

If lst or new are NULL, does nothing.
Sets next property of node at pointer new to address at pointer lst and sets pointer at lst to new

Parameters
[in,out]lstPointer to pointer to first node in the list.
[in]newPointer to the new node to add

Definition at line 34 of file ft_lstadd_front_bonus.c.