-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_ldcd_celldel.c
executable file
·23 lines (21 loc) · 1.06 KB
/
ft_ldcd_celldel.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_ldcd_celldel.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tseguier <tseguier@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2013/12/04 02:04:24 by tseguier #+# #+# */
/* Updated: 2014/03/27 18:38:17 by jcoignet ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdlib.h>
#include "libft.h"
void ft_ldcd_celldel(t_ldcd_cell *cell, void (*del)(void **))
{
if (!cell)
return ;
if (del)
(*del)(&((*cell)->content));
ft_memdel((void **)cell);
}