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

The file containing the my_delete_nodes function. More...

#include "mylist.h"

Functions

int my_delete_nodes (node_t **begin, void const *data_ref, int(*cmp)())
 Deletes nodes from a linked list.
 

Detailed Description

The file containing the my_delete_nodes function.

Author
Nicolas TORO

Function Documentation

◆ my_delete_nodes()

int my_delete_nodes ( node_t ** begin,
void const * data_ref,
int(* cmp )() )

Deletes nodes from a linked list.

Parameters
beginThe beginning of the list
data_refThe data to delete
cmpThe comparison function
Returns
int The number of nodes deleted from the list
Author
Nicolas TORO