libft/sources/libft_srcs/ft_memmove.c
void	*ft_memmove(void *dst, const void *src, size_t len)
{
	if (src < dst && src + len > dst)
	{
		while (len > 0)
		{
			len = len - 1;
			((unsigned char*)dst)[len] = ((unsigned char*)src)[len];
		}
	}
	else
	{
		ft_memcpy(dst, src, len);
	}
	return (dst);
}
/*
** The memmove() function copies len bytes from string src to string dst.
** The two strings may overlap;
** the copy is always done in a non-destructive manner.
*/
The memmove() function copies len bytes from string src to string dst.
The two strings may overlap;
the copy is always done in a non-destructive manner.
The memmove () function copies len bytes from string src to string dst . The two strings may overlap ; the copy is always done in a non - destructive manner .
void	*ft_memmove(void *dst, const void *src, size_t len)
{
	if (src < dst && src + len > dst)
	{
		while (len > 0)
		{
			len = len - 1;
			((unsigned char*)dst)[len] = ((unsigned char*)src)[len];
		}
	}
	else
	{
		ft_memcpy(dst, src, len);
	}
	return (dst);
}
void * ft_memmove ( void * dst , const void * src , size_t len ) { if ( src < dst && src + len > dst ) { while ( len > 0 ) { len = len - 1 ; ( ( unsigned char * ) dst ) [ len ] = ( ( unsigned char * ) src ) [ len ] ; } } else { ft_memcpy ( dst , src , len ) ; } return ( dst ) ; }
The memmove() function copies len bytes from string src to string dst.
The memmove () function copies len bytes from string src to string dst .