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