6.3w+
社区成员
函数:void * memmove ( void * destination, const void * source, size_t num );
Parameters
destination
Pointer to the destination array where the content is to be copied,
type-casted to a pointer of type void*.
source
Pointer to the source of data to be copied, type-casted to a pointer of type const void*.
num
Number of bytes to copy.
Return Value
destination is returned.
Example
/* memmove example */
#include <stdio.h>
#include <string.h>
int main ()
{
char str[] = "memmove can be very useful......";
memmove (str+20,str+15,11);
puts (str);
return 0;
}
Output:
memmove can be very very useful.