Google interview question

How to implement a memcpy in C.