aboutsummaryrefslogtreecommitdiff
path: root/ft_calloc.c
diff options
context:
space:
mode:
authorCabergs Charles <cacharle@w-r5-p6.s19.be>2019-10-09 09:12:43 +0200
committerCabergs Charles <cacharle@w-r5-p6.s19.be>2019-10-09 09:12:43 +0200
commit840957aee277e7c426647cc133b2a41e7cecd9a9 (patch)
tree96eaae76f3586e9fa141cd94b95e92b7a6db3d09 /ft_calloc.c
parentf723389e5143c9ee0bc3d9774bb523b1c752b74c (diff)
downloadlibft-840957aee277e7c426647cc133b2a41e7cecd9a9.tar.gz
libft-840957aee277e7c426647cc133b2a41e7cecd9a9.tar.bz2
libft-840957aee277e7c426647cc133b2a41e7cecd9a9.zip
Normed, Makefile bonus rule
- bonus rule to add the *_bonus files to libft.a - normed memmove, calloc and bonus
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);