memcpy.3 (570B)
1 .TH memcpy 3 2 .SH NAME 3 memcpy - copy bytes in memory 4 .SH SYNOPSIS 5 #include <string.h> 6 7 void *memcpy (void *restrict s1, const void *restrict s2, size_t n) 8 .SH DESCRIPTION 9 The 10 .BR memcpy () 11 function copies the first 12 .I n 13 bytes of the object pointed to by 14 .I s2 15 into the object pointed to by 16 .IR s1 . 17 The function does not modify 18 .I s1 19 if 20 .I n 21 is equal to 0. 22 If copying takes place between objects that overlap, 23 the behavior is undefined. 24 .SH RETURN VALUE 25 The 26 .BR memcpy () 27 function shall always return the pointer 28 .IR s1 . 29 .SH STANDARDS 30 ISO/IEC 9899:1999 Section 7.21.2.1