memcpy/strcpy implementation with efficiency, safety and security
a function that copies n Bytes from the source object to the destination object.
Requirements:
● Don’t use system calls (memcpy)
● Don’t allocate additional memory
● Write it as efficiently as you can, think about performance.
● If the operation fails the application should know the reason.
● Write documentation to this API that explains the function, the IN/OUT parameters and the return value.
● Write tests and unit tests functions that check your API.