Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

memmove - Copy memory area

&pagelevel(4)&pagelevel

Definition

#include <string.h>

void *memmove(void *s1, const void *s2, size_t n);

memmove copies the first n bytes of the memory area to which s2 points to the memory area
to which s1 points.
memmove first copies the n bytes to a temporary array that does not overlap memory areas
s1 and s2 and only then to memory area s1.

Return val.

Notes

Pointer to memory area s1.

This function is suitable for processing character arrays containing the null byte (\0), since
memmove does not interpret the null byte as the ’end of text’.

In contrast to memcpy, memmove also works with memory areas that overlap.

See also

memcpy