aboutsummaryrefslogtreecommitdiff
path: root/include/libft_mem.h
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-08-01 19:29:33 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-08-01 19:31:57 +0200
commitee32953ea79616e72f5428cdf40c834714a891c9 (patch)
treea2752a59225f06cb470ffde40c7bbe50a6f25a8d /include/libft_mem.h
parentca68aa1e6fca81213d19431439ad0b31863fe10c (diff)
downloadlibft-ee32953ea79616e72f5428cdf40c834714a891c9.tar.gz
libft-ee32953ea79616e72f5428cdf40c834714a891c9.tar.bz2
libft-ee32953ea79616e72f5428cdf40c834714a891c9.zip
Added ft_realloc, enabled ft_strnew
Diffstat (limited to 'include/libft_mem.h')
-rw-r--r--include/libft_mem.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/libft_mem.h b/include/libft_mem.h
index a15c020..e03b6fa 100644
--- a/include/libft_mem.h
+++ b/include/libft_mem.h
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/01/31 10:35:57 by cacharle #+# #+# */
-/* Updated: 2020/02/13 03:11:09 by cacharle ### ########.fr */
+/* Updated: 2020/08/01 15:28:15 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -14,6 +14,7 @@
# define LIBFT_MEM_H
# include <stddef.h>
+# include <stdlib.h>
# include "libft_types.h"
void ft_bzero(void *s, size_t n);
@@ -30,6 +31,8 @@ void *ft_memmem(const void *big, size_t big_len,
void ft_memset_pattern4(void *b, const void *pattern4,
size_t len);
+void *ft_realloc(void *ptr, size_t ptr_size, size_t size);
+
/*
** bloat ?
*/