There is a more appropriate software forum for this question, but anyway...
memcpy() will generally be faster as strncpy() handles the padding of the destination string with null characters if necessary. The performance different will be negligible, but strncpy() is used to copy strings, and memcpy() is used to copy bytes from one location to another without regard to its representation.