Corewar-Final/libft/libft/ft_strdel.c
Jeremy FLEURY 748d10f4f3 push
2019-07-17 11:22:24 +02:00

24 lines
1.0 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strdel.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jfleury <jfleury@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/11/13 10:07:18 by jfleury #+# #+# */
/* Updated: 2019/05/23 12:22:31 by allefebv ### ########.fr */
/* */
/* ************************************************************************** */
#include <string.h>
#include <stdlib.h>
void ft_strdel(char **as)
{
if (as != NULL && *as != NULL)
{
free(*as);
*as = NULL;
}
}