-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_memdel.c
24 lines (22 loc) · 1012 Bytes
/
ft_memdel.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_memdel.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tpaaso <tpaaso@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/10/25 11:23:15 by tpaaso #+# #+# */
/* Updated: 2019/11/05 10:45:15 by tpaaso ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_memdel(void **ap)
{
if (!ap)
return ;
if (*ap && ap)
{
free(*ap);
*ap = NULL;
}
}