libft/ft_memalloc.c
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_memalloc.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jlasne <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/03 15:47:53 by jlasne #+# #+# */
/* Updated: 2016/11/28 11:22:23 by jlasne ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void *ft_memalloc(size_t size)
{
void *r;
r = (void *)malloc(size);
if (!r)
return (NULL);
ft_bzero(r, size);
return (r);
}