]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man/man3/memmove.3
man/, share/mk/: Move man*/ to man/
[thirdparty/man-pages.git] / man / man3 / memmove.3
CommitLineData
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
13memmove \- copy memory area
e9e85d6e
AC
14.SH LIBRARY
15Standard 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
24The
25.BR memmove ()
35cfd378
MK
26function copies
27.I n
28bytes from memory area
29.I src
30to memory area
31.IR dest .
1391e789
MK
32The memory areas may overlap: copying takes place as though
33the bytes in
34.I src
35are first copied into a temporary array that does not overlap
36.I src
37or
4bfc3573 38.IR dest ,
1391e789
MK
39and the bytes are then copied from the temporary array to
40.IR dest .
47297adb 41.SH RETURN VALUE
60a90ecd
MK
42The
43.BR memmove ()
35cfd378
MK
44function returns a pointer to
45.IR dest .
69351e5a 46.SH ATTRIBUTES
68935b00
PH
47For an explanation of the terms used in this section, see
48.BR attributes (7).
49.TS
50allbox;
c466875e 51lbx lb lb
68935b00
PH
52l l l.
53Interface Attribute Value
54T{
9e54434e
BR
55.na
56.nh
69351e5a 57.BR memmove ()
68935b00
PH
58T} Thread safety MT-Safe
59.TE
3113c7f3 60.SH STANDARDS
4131356c
AC
61C11, POSIX.1-2008.
62.SH HISTORY
63POSIX.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)