memcpy.3 (590B)
1 .TH memcpy 3 2 .SH NAME 3 memcpy - copy bytes between non-overlapping memory regions 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 12 .I n 13 bytes from the memory block pointed to by 14 .I s2 15 into the memory block pointed to by 16 .IR s1 . 17 When 18 .I n 19 is zero, nothing is copied. 20 The source and destination must not overlap; 21 if they do, the behavior is undefined. 22 .SH RETURN VALUE 23 The 24 .BR memcpy () 25 function always returns its first argument, 26 .IR s1 . 27 .SH STANDARDS 28 ISO/IEC 9899:1999 Section 7.21.2.1