/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strtabcpy.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: tmaze +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2018/11/23 14:44:53 by tmaze #+# #+# */ /* Updated: 2018/11/23 14:52:27 by tmaze ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" char **ft_strtabcpy(char **dest, const char **src) { size_t i; i = 0; while (src[i]) { if ((dest[i] = ft_strdup(src[i])) == NULL) { ft_strtabclr(dest); return (NULL); } i++; } }