ft_memdel

This commit is contained in:
Tanguy MAZE 2018-04-06 18:32:43 +02:00
parent ec7b2d2ff5
commit a6613be0ff
2 changed files with 22 additions and 2 deletions

View File

@ -6,7 +6,7 @@
# By: tmaze <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/04/04 10:51:59 by tmaze #+# #+# #
# Updated: 2018/04/06 17:52:46 by tmaze ### ########.fr #
# Updated: 2018/04/06 18:24:39 by tmaze ### ########.fr #
# #
#******************************************************************************#
@ -45,7 +45,8 @@ SRCS = \
ft_toupper.c \
ft_tolower.c \
\
ft_memalloc.c
ft_memalloc.c \
ft_memdel.c
OBJS = $(SRCS:.c=.o)
INCLS = -I.

19
ft_memdel.c Normal file
View File

@ -0,0 +1,19 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_memdel.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tmaze <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/04/06 18:21:08 by tmaze #+# #+# */
/* Updated: 2018/04/06 18:29:17 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_memdel(void **ap)
{
free(*ap);
*ap = NULL;
}