You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
1.0 KiB
25 lines
1.0 KiB
3 years ago
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* ::: :::::::: */
|
||
|
/* ft_calloc.c :+: :+: :+: */
|
||
|
/* +:+ +:+ +:+ */
|
||
|
/* By: narnaud <narnaud@student.42.fr> +#+ +:+ +#+ */
|
||
|
/* +#+#+#+#+#+ +#+ */
|
||
|
/* Created: 2021/10/19 14:11:11 by narnaud #+# #+# */
|
||
|
/* Updated: 2021/11/02 16:58:09 by narnaud ### ########.fr */
|
||
|
/* */
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
#include "libft.h"
|
||
|
|
||
|
void *ft_calloc(size_t count, size_t size)
|
||
|
{
|
||
|
void *ret;
|
||
|
|
||
|
ret = malloc(count * size);
|
||
|
if (!ret)
|
||
|
return (NULL);
|
||
|
ft_bzero(ret, count * size);
|
||
|
return (ret);
|
||
|
}
|