Programming Tutorials

Comment on Tutorial - Using memset(), memcpy(), and memmove() in C By Emiley J



Comment Added by : dml

Comment Added at : 2012-01-02 13:32:20

Comment on Tutorial : Using memset(), memcpy(), and memmove() in C By Emiley J
I did not get the same result for memcpy - e and f are not repeated 5 times. I got this one:
"After memcpy() with overlap: abcdefefefijklmnqrstuvwxyz."
Why? I am not sure memcpy copies byte-by-bytes in this case. Could you explain to me, please?


View Tutorial