-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_memdel.c
20 lines (18 loc) · 991 Bytes
/
ft_memdel.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_memdel.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: erli <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/11/08 09:21:15 by erli #+# #+# */
/* Updated: 2018/11/08 09:29:43 by erli ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdlib.h>
#include <string.h>
void ft_memdel(void **ptr)
{
free(*ptr);
*ptr = NULL;
}