memmove.3 (553B)
1 .TH memmove 3 2 .SH NAME 3 memmove - copy bytes between memory regions that may overlap 4 .SH SYNOPSIS 5 #include <string.h> 6 7 void *memmove (void *s1, const void *s2, size_t n) 8 .SH DESCRIPTION 9 The 10 .BR memmove () 11 function copies 12 .I n 13 bytes from the memory block pointed to by 14 .I s2 15 to the memory block pointed to by 16 .IR s1 . 17 Unlike 18 .BR memcpy , 19 the source and destination regions may overlap. 20 When 21 .I n 22 is zero, nothing is copied. 23 .SH RETURN VALUE 24 The 25 .BR memmove () 26 function returns its first argument, 27 .IR s1 . 28 .SH STANDARDS 29 ISO/IEC 9899:1999 Section 7.21.2.2