aboutsummaryrefslogtreecommitdiff
path: root/ft_calloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'ft_calloc.c')
-rw-r--r--ft_calloc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ft_calloc.c b/ft_calloc.c
index 0cdce92..9248e54 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/07 12:47:58 by cacharle ### ########.fr */
+/* Updated: 2019/10/09 09:07:26 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -15,12 +15,12 @@
void *ft_calloc(size_t count, size_t size)
{
- void *mem;
+ void *mem;
- if (count == 0 || size == 0)
- {
- return (NULL);
- }
+ if (count == 0 || size == 0)
+ {
+ return (NULL);
+ }
if ((mem = malloc(count * size)) == NULL)
return (NULL);
ft_bzero(mem, count * size);