ft_memdel
This commit is contained in:
parent
ec7b2d2ff5
commit
a6613be0ff
5
Makefile
5
Makefile
@ -6,7 +6,7 @@
|
|||||||
# By: tmaze <marvin@42.fr> +#+ +:+ +#+ #
|
# By: tmaze <marvin@42.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2018/04/04 10:51:59 by tmaze #+# #+# #
|
# 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_toupper.c \
|
||||||
ft_tolower.c \
|
ft_tolower.c \
|
||||||
\
|
\
|
||||||
ft_memalloc.c
|
ft_memalloc.c \
|
||||||
|
ft_memdel.c
|
||||||
OBJS = $(SRCS:.c=.o)
|
OBJS = $(SRCS:.c=.o)
|
||||||
INCLS = -I.
|
INCLS = -I.
|
||||||
|
|
||||||
|
19
ft_memdel.c
Normal file
19
ft_memdel.c
Normal 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;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user