text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_memmove.c                                       :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: mpas <marvin@42.fr>                        +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2018/09/21 22:38:37 by mpas              #+#    #+#             */
  /*   Updated: 2018/09/21 22:49:12 by mpas             ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  void	*ft_memmove(void *dst, const void *src, size_t len)
  {
  	unsigned char	*d;
  	unsigned char	*s;
  
  	d = (unsigned char *)dst;
  	s = (unsigned char *)src;
  	if (dst <= src)
  		ft_memcpy(dst, src, len);
  	else
  	{
  		while ((int)len--)
  			d[len] = s[len];
  	}
  	return (d);
  }
  