share/mk/: build-pdf-book: Fix chapter bookmarks
[man-pages.git] / man3 / memmove.3
blobe68c54547e15d65450fcf371ee3186bfc5acc78d
1 '\" t
2 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
3 .\"
4 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
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)
11 .TH memmove 3 (date) "Linux man-pages (unreleased)"
12 .SH NAME
13 memmove \- copy memory area
14 .SH LIBRARY
15 Standard C library
16 .RI ( libc ", " \-lc )
17 .SH SYNOPSIS
18 .nf
19 .B #include <string.h>
21 .BI "void *memmove(void " dest [. n "], const void " src [. n "], size_t " n );
22 .fi
23 .SH DESCRIPTION
24 The
25 .BR memmove ()
26 function copies
27 .I n
28 bytes from memory area
29 .I src
30 to memory area
31 .IR dest .
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
38 .IR dest ,
39 and the bytes are then copied from the temporary array to
40 .IR dest .
41 .SH RETURN VALUE
42 The
43 .BR memmove ()
44 function returns a pointer to
45 .IR dest .
46 .SH ATTRIBUTES
47 For an explanation of the terms used in this section, see
48 .BR attributes (7).
49 .TS
50 allbox;
51 lbx lb lb
52 l l l.
53 Interface       Attribute       Value
55 .na
56 .nh
57 .BR memmove ()
58 T}      Thread safety   MT-Safe
59 .TE
60 .SH STANDARDS
61 C11, POSIX.1-2008.
62 .SH HISTORY
63 POSIX.1-2001, C89, SVr4, 4.3BSD.
64 .SH SEE ALSO
65 .BR bcopy (3),
66 .BR bstring (3),
67 .BR memccpy (3),
68 .BR memcpy (3),
69 .BR strcpy (3),
70 .BR strncpy (3),
71 .BR wmemmove (3)