Debian Codegraph @

upstream/debian-unstable/man3/bcopy.3

raw
1 '\" t
2 .\" Copyright 1993, David Metcalfe <[email protected]>
3 .\" Copyright, the authors of the Linux man-pages project
4 .\"
5 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
6 .\"
7 .TH bcopy 3 2026-02-08 "Linux man-pages 6.18"
8 .SH NAME
9 bcopy \- copy byte sequence
10 .SH LIBRARY
11 Standard C library
12 .RI ( libc ,\~ \-lc )
13 .SH SYNOPSIS
14 .nf
15 .B #include <strings.h>
16 .P
17 .BR "[[deprecated]] void bcopy(" "size_t n;"
18 .BI " const void " src [ n "], void " dest [ n "], size_t " n );
19 .fi
20 .SH DESCRIPTION
21 The
22 .BR bcopy ()
23 function copies
24 .I n
25 bytes from
26 .I src
27 to
28 .IR dest .
29 The result is correct, even when both areas overlap.
30 .SH RETURN VALUE
31 None.
32 .SH ATTRIBUTES
33 For an explanation of the terms used in this section, see
34 .BR attributes (7).
35 .TS
36 allbox;
37 lbx lb lb
38 l l l.
39 Interface Attribute Value
40 T{
41 .na
42 .nh
43 .BR bcopy ()
44 T} Thread safety MT-Safe
45 .TE
46 .SH STANDARDS
47 None.
48 .SH HISTORY
49 4.3BSD.
50 .P
51 Marked as LEGACY in POSIX.1-2001: use
52 .BR memcpy (3)
53 or
54 .BR memmove (3)
55 in new programs.
56 Note that the first two arguments
57 are interchanged for
58 .BR memcpy (3)
59 and
60 .BR memmove (3).
61 POSIX.1-2008 removes the specification of
62 .BR bcopy ().
63 .SH SEE ALSO
64 .BR bstring (3),
65 .BR memccpy (3),
66 .BR memcpy (3),
67 .BR memmove (3),
68 .BR strcpy (3),
69 .BR strncpy (3)