What's wrong with my memcpy?
<p>I have written a function to implement memcpy</p>

<pre><code>#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;string.h&gt;
#include &lt;iostream&gt;
char *memcpy(char *dest,char *src,int n){

    char *ch=dest;
    while (n--)
        *ch++=*src++;
    return  dest;
}

int main(){

    char *src="georgia";
    int n=strlen(src);
    char *dest=new char[n];
    std::cout&lt;&lt;*memcpy(dest,src,n)&lt;&lt;std::endl;
    return 0;
}
</code></pre>

<p>But it only prints a single <code>g</code>.  Why?</p>
