-
Notifications
You must be signed in to change notification settings - Fork 1
/
ft_memdel.c
22 lines (20 loc) · 1007 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_memdel.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: vbrazas <vbrazas@student.unit.ua> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/11/05 16:37:37 by vbrazas #+# #+# */
/* Updated: 2017/11/19 14:46:19 by vbrazas ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_memdel(void **ap)
{
if (ap != NULL && *ap != NULL)
{
free(*ap);
*ap = NULL;
}
}