text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_memcpy.c                                        :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: macbook <marvin@42.fr>                     +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2018/03/28 16:26:13 by macbook           #+#    #+#             */
  /*   Updated: 2018/04/09 17:15:08 by srequiem         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  void	*ft_memcpy(void *dst, const void *src, size_t n)
  {
  	unsigned char	*strsrc;
  	unsigned char	*strdst;
  	unsigned int	i;
  
  	i = 0;
  	strsrc = (unsigned char *)src;
  	strdst = (unsigned char *)dst;
  	while (i < n)
  	{
  		strdst[i] = strsrc[i];
  		i++;
  	}
  	dst = (void*)strdst;
  	return (dst);
  }
  