memcpy rewrite not working : <p>Hi could anyone explain why this memcpy function does not work ?</p>

<pre><code>void    *ft_memcpy(void *dst, const void *src, size_t n)
{    
        while (n--)
                *(char *)dst++ = *(char *)src++;
        return (dst);
}
</code></pre>
