-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_free_and_null.c
20 lines (18 loc) · 1005 Bytes
/
ft_free_and_null.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_free_and_null.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: phemsi-a <phemsi-a@student.42sp.org.br> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/05/08 16:08:23 by phemsi-a #+# #+# */
/* Updated: 2021/05/08 21:21:26 by phemsi-a ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_free_and_null(void **pointer)
{
if (*pointer)
free(*pointer);
*pointer = NULL;
}