Hello,

this subject is rather about memcpy_s which is known as secure copy because it actually check for null pointers and overlapping sections. However my first question would be where is it really implemented and how can i use it?
Quick googling for "where is memcpy_s" revealed that in order to use it I should include string.h and use at least c11 so I did but gcc still complains:
Code:
 warning: implicit declaration of function memcpy_s; did you mean memcpy?
PS: I compile on linux.

I have couple of more questions:
1. Is memcpy_s part of the standard?
2. If I want to implement my own version what should I follow and comply with?
3. Should memcpy_s enable copies inside array or memory blocks? I mean if I have an array of ten elements and use memcpy_s to copy last two bytes into first two bytes should it be allowed?