aboutsummaryrefslogtreecommitdiff
path: root/ft_calloc.c
diff options
context:
space:
mode:
authorCabergs Charles <cacharle@e-r5-p7.s19.be>2019-10-09 17:00:48 +0200
committerCabergs Charles <cacharle@e-r5-p7.s19.be>2019-10-09 17:00:48 +0200
commit84409d8d3fa8bd9bae28b3523aa6d0c0b3a68406 (patch)
treea41cbc8c6a3a4f52309dea94a0fdf3c688804124 /ft_calloc.c
parent840957aee277e7c426647cc133b2a41e7cecd9a9 (diff)
downloadlibft-84409d8d3fa8bd9bae28b3523aa6d0c0b3a68406.tar.gz
libft-84409d8d3fa8bd9bae28b3523aa6d0c0b3a68406.tar.bz2
libft-84409d8d3fa8bd9bae28b3523aa6d0c0b3a68406.zip
Small update
Diffstat (limited to 'ft_calloc.c')
-rw-r--r--ft_calloc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ft_calloc.c b/ft_calloc.c
index 9248e54..622bdd2 100644
--- a/ft_calloc.c
+++ b/ft_calloc.c
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/10/07 12:45:37 by cacharle #+# #+# */
-/* Updated: 2019/10/09 09:07:26 by cacharle ### ########.fr */
+/* Updated: 2019/10/09 12:45:31 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -18,9 +18,7 @@ void *ft_calloc(size_t count, size_t size)
void *mem;
if (count == 0 || size == 0)
- {
return (NULL);
- }
if ((mem = malloc(count * size)) == NULL)
return (NULL);
ft_bzero(mem, count * size);