list_node.c
/* Remove node after freeing his element using 'free_fn' function */
Remove node after freeing his element using 'free_fn' function
Remove node after freeing his element using ' free_fn ' function
void list_node_delete(list_node_t **node, free_func free_fn) 
{
	if (free_fn != NULL) free_fn((*node)->data);
	(*node)->data = NULL;
	free(*node);
	*node = NULL;
}
void list_node_delete ( list_node_t * * node , free_func free_fn ) { if ( free_fn != NULL ) free_fn ( ( * node ) -> data ) ; ( * node ) -> data = NULL ; free ( * node ) ; * node = NULL ; }
Remove node after freeing his element using 'free_fn' function
Remove node after freeing his element using ' free_fn ' function