Routines like memcpy() (or memmove()) are part of standard C library, are included through standard header and know nothing about any locking mechanics. Locking should be provided by some external way like inter-process mutexes, semaphores or things like this.