/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_memalloc.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: gtertysh +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/12/01 16:07:55 by gtertysh #+# #+# */ /* Updated: 2016/12/01 16:49:22 by gtertysh ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" void *ft_memalloc(size_t size) { void *ret; ret = NULL; if ((ret = malloc(size))) ft_bzero(ret, size); return (ret); }