From dc7255fdb45587ddd90db87e3c3b971ebd8edef0 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 29 Sep 2020 18:54:03 +0200 Subject: Some updates --- libft/src/ft_calloc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libft/src/ft_calloc.c') diff --git a/libft/src/ft_calloc.c b/libft/src/ft_calloc.c index 88c5457..e8f81f7 100644 --- a/libft/src/ft_calloc.c +++ b/libft/src/ft_calloc.c @@ -14,15 +14,16 @@ #include #include -void - *ft_calloc(size_t count, size_t size) +void *ft_calloc(size_t count, size_t size) { void *ptr; ptr = 0; ptr = malloc(count * size); - if (!ptr) + if (ptr == NULL) + { return (NULL); + } ft_bzero(ptr, count * size); return (ptr); } -- cgit v1.2.3