]>
Commit | Line | Data |
---|---|---|
a1eaacb1 | 1 | '\" t |
fea681da MK |
2 | .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) |
3 | .\" | |
5fbde956 | 4 | .\" SPDX-License-Identifier: Linux-man-pages-copyleft |
fea681da MK |
5 | .\" |
6 | .\" References consulted: | |
7 | .\" Linux libc source code | |
8 | .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) | |
9 | .\" 386BSD man pages | |
10 | .\" Modified Sat Jul 24 18:49:59 1993 by Rik Faith (faith@cs.unc.edu) | |
4c1c5274 | 11 | .TH memmove 3 (date) "Linux man-pages (unreleased)" |
fea681da MK |
12 | .SH NAME |
13 | memmove \- copy memory area | |
e9e85d6e AC |
14 | .SH LIBRARY |
15 | Standard C library | |
8fc3b2cf | 16 | .RI ( libc ", " \-lc ) |
fea681da MK |
17 | .SH SYNOPSIS |
18 | .nf | |
19 | .B #include <string.h> | |
c6d039a3 | 20 | .P |
c64cd13e | 21 | .BI "void *memmove(void " dest [. n "], const void " src [. n "], size_t " n ); |
fea681da MK |
22 | .fi |
23 | .SH DESCRIPTION | |
60a90ecd MK |
24 | The |
25 | .BR memmove () | |
35cfd378 MK |
26 | function copies |
27 | .I n | |
28 | bytes from memory area | |
29 | .I src | |
30 | to memory area | |
31 | .IR dest . | |
1391e789 MK |
32 | The memory areas may overlap: copying takes place as though |
33 | the bytes in | |
34 | .I src | |
35 | are first copied into a temporary array that does not overlap | |
36 | .I src | |
37 | or | |
4bfc3573 | 38 | .IR dest , |
1391e789 MK |
39 | and the bytes are then copied from the temporary array to |
40 | .IR dest . | |
47297adb | 41 | .SH RETURN VALUE |
60a90ecd MK |
42 | The |
43 | .BR memmove () | |
35cfd378 MK |
44 | function returns a pointer to |
45 | .IR dest . | |
69351e5a | 46 | .SH ATTRIBUTES |
68935b00 PH |
47 | For an explanation of the terms used in this section, see |
48 | .BR attributes (7). | |
49 | .TS | |
50 | allbox; | |
c466875e | 51 | lbx lb lb |
68935b00 PH |
52 | l l l. |
53 | Interface Attribute Value | |
54 | T{ | |
9e54434e BR |
55 | .na |
56 | .nh | |
69351e5a | 57 | .BR memmove () |
68935b00 PH |
58 | T} Thread safety MT-Safe |
59 | .TE | |
3113c7f3 | 60 | .SH STANDARDS |
4131356c AC |
61 | C11, POSIX.1-2008. |
62 | .SH HISTORY | |
63 | POSIX.1-2001, C89, SVr4, 4.3BSD. | |
47297adb | 64 | .SH SEE ALSO |
fea681da | 65 | .BR bcopy (3), |
879091c9 | 66 | .BR bstring (3), |
fea681da MK |
67 | .BR memccpy (3), |
68 | .BR memcpy (3), | |
69 | .BR strcpy (3), | |
70 | .BR strncpy (3), | |
71 | .BR wmemmove (3) |