-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_memdel.c
executable file
·26 lines (23 loc) · 1.05 KB
/
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
25
26
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_memdel.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ngouy <ngouy@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/11/06 12:34:49 by ngouy #+# #+# */
/* Updated: 2015/11/04 16:32:48 by ngouy ### ########.fr */
/* */
/* ************************************************************************** */
/*
** Free the allocated memory and prevent from crash if not allocated.
*/
#include "libft.h"
void ft_memdel(void **ap)
{
if (ap && *ap)
{
free(*ap);
*ap = NULL;
}
}