-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathft_memdel.c
22 lines (20 loc) · 1021 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: oadhesiv <oadhesiv@student.21-school.ru> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/04/25 15:59:30 by oadhesiv #+# #+# */
/* Updated: 2020/03/13 22:08:20 by oadhesiv ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdlib.h>
#include "libft.h"
void ft_memdel(void **ap)
{
if (!ap && !*ap)
return ;
free(*ap);
*ap = (void *)0;
}