42sh 1.0.0
Create a shell in C
Loading...
Searching...
No Matches
my_previous_to_next.c File Reference

The file containing the my_previous_to_next function. More...

#include "mylist.h"

Functions

node_tmy_previous_to_next (node_t **head, node_t *to_delete)
 Skip a node in a linked list and change the previous node to the next node.
 

Detailed Description

The file containing the my_previous_to_next function.

Author
Gianni TUERO

Function Documentation

◆ my_previous_to_next()

node_t * my_previous_to_next ( node_t ** head,
node_t * to_delete )

Skip a node in a linked list and change the previous node to the next node.

Parameters
headThe beginning of the list
to_deleteThe node to skip
Returns
node_t * The to_delete node