-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_calloc.c
More file actions
23 lines (21 loc) · 1.05 KB
/
Copy pathft_calloc.c
File metadata and controls
23 lines (21 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_calloc.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: danrodr3 <danrodr3@students.42madrid.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/10/10 16:55:01 by danrodr3 #+# #+# */
/* Updated: 2025/10/10 18:10:06 by danrodr3 ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void *ft_calloc(size_t num, size_t size)
{
size_t *init;
init = malloc(size * num);
if (!init)
return (NULL);
ft_bzero(init, size * num);
return (init);
}