Corewar documentation 1.0.0
Loading...
Searching...
No Matches
my_find_node.c File Reference

The file containing the my_find_node function. More...

#include "mylist.h"

Functions

node_tmy_find_node (node_t const *begin, void const *data_ref, int(*cmp)())
 Finds a node in the linked list.
 

Detailed Description

The file containing the my_find_node function.

Author
Nicolas TORO

Function Documentation

◆ my_find_node()

node_t * my_find_node ( node_t const * begin,
void const * data,
int(* cmp )() )

Finds a node in the linked list.

Parameters
beginThe beginning of the list
dataThe data to find
cmpThe comparison function
Returns
node_t * The node found in the list
Author
Nicolas TORO