1memmove(3)                 Library Functions Manual                 memmove(3)
2
3
4

NAME

6       memmove - copy memory area
7

LIBRARY

9       Standard C library (libc, -lc)
10

SYNOPSIS

12       #include <string.h>
13
14       void *memmove(void dest[.n], const void src[.n], size_t n);
15

DESCRIPTION

17       The  memmove()  function  copies n bytes from memory area src to memory
18       area dest.  The memory areas may overlap: copying takes place as though
19       the  bytes in src are first copied into a temporary array that does not
20       overlap src or dest, and the bytes are then copied from  the  temporary
21       array to dest.
22

RETURN VALUE

24       The memmove() function returns a pointer to dest.
25

ATTRIBUTES

27       For  an  explanation  of  the  terms  used  in  this  section,  see at‐
28       tributes(7).
29
30       ┌────────────────────────────────────────────┬───────────────┬─────────┐
31Interface                                   Attribute     Value   
32       ├────────────────────────────────────────────┼───────────────┼─────────┤
33memmove()                                   │ Thread safety │ MT-Safe │
34       └────────────────────────────────────────────┴───────────────┴─────────┘
35

STANDARDS

37       C11, POSIX.1-2008.
38

HISTORY

40       POSIX.1-2001, C89, SVr4, 4.3BSD.
41

SEE ALSO

43       bcopy(3), bstring(3),  memccpy(3),  memcpy(3),  strcpy(3),  strncpy(3),
44       wmemmove(3)
45
46
47
48Linux man-pages 6.04              2023-03-30                        memmove(3)
Impressum