src/labels.c
/*
**	This function deletes all the labels nice and quick using recursion.
*/
This function deletes all the labels nice and quick using recursion.
This function deletes all the labels nice and quick using recursion .
void	delete_labels(t_label *label)
{
	if (label)
	{
		if (label->next)
			delete_labels(label->next);
		ft_strdel(&label->label);
		ft_memdel((void **)&label);
	}
}
void delete_labels ( t_label * label ) { if ( label ) { if ( label -> next ) delete_labels ( label -> next ) ; ft_strdel ( & label -> label ) ; ft_memdel ( ( void * * ) & label ) ; } }
This function deletes all the labels nice and quick using recursion.
This function deletes all the labels nice and quick using recursion .