/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strcpy.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: scebula +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2015/11/24 21:05:14 by scebula #+# #+# */ /* Updated: 2015/12/04 00:29:51 by scebula ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" char *ft_strcpy(char *dst, const char *src) { int i; i = 0; while (src[i]) { dst[i] = src[i]; i++; } dst[i] = '\0'; return (dst); }