text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_memmove.c                                       :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: fredsiik <marvin@42.fr>                    +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2019/02/12 01:08:16 by fredsiik          #+#    #+#             */
  /*   Updated: 2019/02/12 01:12:46 by fredsiik         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  void	*ft_memmove(void *dst, const void *src, size_t len)
  {
  	size_t	i;
  	unsigned char *udst;
  	unsigned char *usrc;
  
  	i = -1;
  	udst = (unsigned char *)dst;
  	usrc = (unsigned char *)src;
  	if (usrc < udst)
  		while (len-- > 0)
  			udst[len] = usrc[len];
  	else
  		while (++i < len)
  			udst[i] = usrc[i];
  	return (udst);
  }
  