]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/bcopy.3
membarrier.2: Remove redundant mention of return value of MEMBARRIER_CMD_SHARED
[thirdparty/man-pages.git] / man3 / bcopy.3
CommitLineData
fea681da
MK
1.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2.\"
93015253 3.\" %%%LICENSE_START(VERBATIM)
fea681da
MK
4.\" Permission is granted to make and distribute verbatim copies of this
5.\" manual provided the copyright notice and this permission notice are
6.\" preserved on all copies.
7.\"
8.\" Permission is granted to copy and distribute modified versions of this
9.\" manual under the conditions for verbatim copying, provided that the
10.\" entire resulting derived work is distributed under the terms of a
11.\" permission notice identical to this one.
c13182ef 12.\"
fea681da
MK
13.\" Since the Linux kernel and libraries are constantly changing, this
14.\" manual page may be incorrect or out-of-date. The author(s) assume no
15.\" responsibility for errors or omissions, or for damages resulting from
16.\" the use of the information contained herein. The author(s) may not
17.\" have taken the same level of care in the production of this manual,
18.\" which is licensed free of charge, as they might when working
19.\" professionally.
c13182ef 20.\"
fea681da
MK
21.\" Formatted or processed versions of this manual, if unaccompanied by
22.\" the source, must acknowledge the copyright and authors of this work.
4b72fb64 23.\" %%%LICENSE_END
fea681da
MK
24.\"
25.\" References consulted:
26.\" Linux libc source code
27.\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
28.\" 386BSD man pages
29.\"
30.\" Modified Sun Feb 26 14:52:00 1995 by Rik Faith <faith@cs.unc.edu>
31.\" Modified Tue Oct 22 23:48:10 1996 by Eric S. Raymond <esr@thyrsus.com>
32.\" "
fe0fefbf 33.TH BCOPY 3 2015-03-02 "Linux" "Linux Programmer's Manual"
fea681da
MK
34.SH NAME
35bcopy \- copy byte sequence
36.SH SYNOPSIS
37.nf
38.B #include <strings.h>
39.sp
40.BI "void bcopy(const void *" src ", void *" dest ", size_t " n );
41.fi
42.SH DESCRIPTION
43The
63aa9df0 44.BR bcopy ()
fea681da
MK
45function copies
46.I n
47bytes from
48.I src
49to
50.IR dest .
51The result is correct, even when both areas overlap.
47297adb 52.SH RETURN VALUE
fea681da 53None.
d1dcc57f 54.SH ATTRIBUTES
2ff76b2c
MK
55For an explanation of the terms used in this section, see
56.BR attributes (7).
57.TS
58allbox;
59lb lb lb
60l l l.
61Interface Attribute Value
62T{
d1dcc57f 63.BR bcopy ()
2ff76b2c
MK
64T} Thread safety MT-Safe
65.TE
47297adb 66.SH CONFORMING TO
c13182ef 674.3BSD.
68e1685c 68This function is deprecated (marked as LEGACY in POSIX.1-2001): use
fb186734 69.BR memcpy (3)
b6dd43ba 70or
fb186734 71.BR memmove (3)
c13182ef 72in new programs.
c4bb193f 73Note that the first two arguments
fea681da 74are interchanged for
fb186734 75.BR memcpy (3)
b6dd43ba 76and
fb186734 77.BR memmove (3).
48cc3d9d
MK
78POSIX.1-2008 removes the specification of
79.BR bcopy ().
47297adb 80.SH SEE ALSO
fea681da
MK
81.BR memccpy (3),
82.BR memcpy (3),
83.BR memmove (3),
84.BR strcpy (3),
85.BR strncpy (3)