fillit/libft/ft_memcpy.c

27 lines
1.1 KiB
C
Raw Normal View History

2016-12-13 22:45:59 +02:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_memcpy.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gtertysh <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/28 17:19:13 by gtertysh #+# #+# */
/* Updated: 2016/11/29 14:52:27 by gtertysh ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void *ft_memcpy(void *dst, const void *src, size_t len)
{
size_t i;
i = 0;
while (i < len)
{
*((char *)dst + i) = *((const char *)src + i);
i++;
}
return (dst);
}