-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_memdel.c
21 lines (19 loc) · 1000 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_memdel.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: nmncube <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/06/11 10:07:05 by nmncube #+# #+# */
/* Updated: 2019/06/17 14:37:54 by nmncube ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_memdel(void **ap)
{
if (!ap)
return ((void)NULL);
free(*ap);
*ap = NULL;
}