Debian Codegraph @

upstream/debian-unstable/man3/memmove.3

raw
1 '\" t
2 .\" Copyright 1993, David Metcalfe <[email protected]>
3 .\" Copyright, the authors of the Linux man-pages project
4 .\"
5 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
6 .\"
7 .TH memmove 3 2026-02-08 "Linux man-pages 6.18"
8 .SH NAME
9 memmove \- copy memory area
10 .SH LIBRARY
11 Standard C library
12 .RI ( libc ,\~ \-lc )
13 .SH SYNOPSIS
14 .nf
15 .B #include <string.h>
16 .P
17 .BR "void *memmove(" "size_t n;"
18 .BI " void " dest [ n "], const void " src [ n "], size_t " n );
19 .fi
20 .SH DESCRIPTION
21 The
22 .BR memmove ()
23 function copies
24 .I n
25 bytes from memory area
26 .I src
27 to memory area
28 .IR dest .
29 The memory areas may overlap: copying takes place as though
30 the bytes in
31 .I src
32 are first copied into a temporary array that does not overlap
33 .I src
34 or
35 .IR dest ,
36 and the bytes are then copied from the temporary array to
37 .IR dest .
38 .SH RETURN VALUE
39 The
40 .BR memmove ()
41 function returns a pointer to
42 .IR dest .
43 .SH ATTRIBUTES
44 For an explanation of the terms used in this section, see
45 .BR attributes (7).
46 .TS
47 allbox;
48 lbx lb lb
49 l l l.
50 Interface Attribute Value
51 T{
52 .na
53 .nh
54 .BR memmove ()
55 T} Thread safety MT-Safe
56 .TE
57 .SH STANDARDS
58 C11, POSIX.1-2008.
59 .SH HISTORY
60 POSIX.1-2001, C89, SVr4, 4.3BSD.
61 .SH SEE ALSO
62 .BR bcopy (3),
63 .BR bstring (3),
64 .BR memccpy (3),
65 .BR memcpy (3),
66 .BR strcpy (3),
67 .BR strncpy (3),
68 .BR wmemmove (3)