-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_free.c
22 lines (20 loc) · 1014 Bytes
/
ft_free.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.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: yde-goes <[email protected] +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/05/30 16:14:56 by ccamargo #+# #+# */
/* Updated: 2022/08/26 00:30:35 by yde-goes ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_free(void **str, void *content)
{
if (*str)
{
free(*str);
*str = (char *) content;
}
}