-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_free_ptr.c
22 lines (20 loc) · 991 Bytes
/
ft_free_ptr.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_free_ptr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mavinici <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/03/11 16:16:18 by mavinici #+# #+# */
/* Updated: 2022/04/21 09:31:22 by mavinici ### ########.fr */
/* */
/* ************************************************************************** */
#include <libft.h>
void ft_free_ptr(void **ptr)
{
if (*ptr)
{
free(*ptr);
*ptr = NULL;
}
}