/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_tabnew.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: bchanot +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/12/04 02:51:17 by bchanot #+# #+# */ /* Updated: 2018/10/14 03:21:17 by bchanot ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" char **ft_tabnew(size_t len) { char **tab; size_t i; i = -1; if (!(tab = (char **)ft_memalloc(sizeof(char *) * (len + 1)))) return (NULL); while (++i <= len) tab[i] = 0; return (tab); }