]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/bcopy.3
man*/: ffix (un-bracket tables)
[thirdparty/man-pages.git] / man3 / bcopy.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.\"
11.\" Modified Sun Feb 26 14:52:00 1995 by Rik Faith <faith@cs.unc.edu>
12.\" Modified Tue Oct 22 23:48:10 1996 by Eric S. Raymond <esr@thyrsus.com>
13.\" "
4c1c5274 14.TH bcopy 3 (date) "Linux man-pages (unreleased)"
fea681da
MK
15.SH NAME
16bcopy \- copy byte sequence
b813014f
AC
17.SH LIBRARY
18Standard C library
19.RI ( libc ", " \-lc )
fea681da
MK
20.SH SYNOPSIS
21.nf
22.B #include <strings.h>
68e4db0a 23.PP
c64cd13e
AC
24.BI "[[deprecated]] void bcopy(const void " src [. n "], void " dest [. n "], \
25size_t " n );
fea681da
MK
26.fi
27.SH DESCRIPTION
28The
63aa9df0 29.BR bcopy ()
fea681da
MK
30function copies
31.I n
32bytes from
33.I src
34to
35.IR dest .
36The result is correct, even when both areas overlap.
47297adb 37.SH RETURN VALUE
fea681da 38None.
d1dcc57f 39.SH ATTRIBUTES
2ff76b2c
MK
40For an explanation of the terms used in this section, see
41.BR attributes (7).
42.TS
43allbox;
c466875e 44lbx lb lb
2ff76b2c
MK
45l l l.
46Interface Attribute Value
47T{
9e54434e
BR
48.na
49.nh
d1dcc57f 50.BR bcopy ()
2ff76b2c
MK
51T} Thread safety MT-Safe
52.TE
c466875e 53.sp 1
3113c7f3 54.SH STANDARDS
4131356c
AC
55None.
56.SH HISTORY
c13182ef 574.3BSD.
4131356c
AC
58.PP
59Marked as LEGACY in POSIX.1-2001: use
fb186734 60.BR memcpy (3)
b6dd43ba 61or
fb186734 62.BR memmove (3)
c13182ef 63in new programs.
c4bb193f 64Note that the first two arguments
fea681da 65are interchanged for
fb186734 66.BR memcpy (3)
b6dd43ba 67and
fb186734 68.BR memmove (3).
48cc3d9d
MK
69POSIX.1-2008 removes the specification of
70.BR bcopy ().
47297adb 71.SH SEE ALSO
879091c9 72.BR bstring (3),
fea681da
MK
73.BR memccpy (3),
74.BR memcpy (3),
75.BR memmove (3),
76.BR strcpy (3),
77.BR strncpy (3)