libft
ft_strdel.c
Go to the documentation of this file.
1 /* ************************************************************************** */
3 /* */
4 /* ::: :::::::: */
5 /* ft_strdel.c :+: :+: :+: */
6 /* +:+ +:+ +:+ */
7 /* By: unite <marvin@42.fr> +#+ +:+ +#+ */
8 /* +#+#+#+#+#+ +#+ */
9 /* Created: 2019/09/05 00:36:27 by unite #+# #+# */
10 /* Updated: 2020/07/16 02:50:11 by unite ### ########.fr */
11 /* */
12 /* ************************************************************************** */
13 
14 #include "libft.h"
15 
24 void ft_strdel(char **as)
25 {
26  ft_memdel((void **)as);
27 }
ft_strdel
void ft_strdel(char **as)
Frees a string and sets its pointer to NULL
Definition: ft_strdel.c:24
libft.h
ft_memdel
void ft_memdel(void **ap)
Frees memory where a pointer points to and sets the pointer to NULL.
Definition: ft_memdel.c:22