Hm thats weird, since you dont have to do that in either C or C++. memcpy is for memory management on the heap. Besides, memcpy is not even mentioned in the manual.

Anyway, I tried using memcpy for this and it didnt work. :/ I think it, just like in C and C++, doesnt operate on the stack.

What Ive written above does work in regular C btw.