]>
Commit | Line | Data |
---|---|---|
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 |
16 | bcopy \- copy byte sequence | |
b813014f AC |
17 | .SH LIBRARY |
18 | Standard 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 "], \ |
25 | size_t " n ); | |
fea681da MK |
26 | .fi |
27 | .SH DESCRIPTION | |
28 | The | |
63aa9df0 | 29 | .BR bcopy () |
fea681da MK |
30 | function copies |
31 | .I n | |
32 | bytes from | |
33 | .I src | |
34 | to | |
35 | .IR dest . | |
36 | The result is correct, even when both areas overlap. | |
47297adb | 37 | .SH RETURN VALUE |
fea681da | 38 | None. |
d1dcc57f | 39 | .SH ATTRIBUTES |
2ff76b2c MK |
40 | For an explanation of the terms used in this section, see |
41 | .BR attributes (7). | |
42 | .TS | |
43 | allbox; | |
c466875e | 44 | lbx lb lb |
2ff76b2c MK |
45 | l l l. |
46 | Interface Attribute Value | |
47 | T{ | |
9e54434e BR |
48 | .na |
49 | .nh | |
d1dcc57f | 50 | .BR bcopy () |
2ff76b2c MK |
51 | T} Thread safety MT-Safe |
52 | .TE | |
c466875e | 53 | .sp 1 |
3113c7f3 | 54 | .SH STANDARDS |
4131356c AC |
55 | None. |
56 | .SH HISTORY | |
c13182ef | 57 | 4.3BSD. |
4131356c AC |
58 | .PP |
59 | Marked as LEGACY in POSIX.1-2001: use | |
fb186734 | 60 | .BR memcpy (3) |
b6dd43ba | 61 | or |
fb186734 | 62 | .BR memmove (3) |
c13182ef | 63 | in new programs. |
c4bb193f | 64 | Note that the first two arguments |
fea681da | 65 | are interchanged for |
fb186734 | 66 | .BR memcpy (3) |
b6dd43ba | 67 | and |
fb186734 | 68 | .BR memmove (3). |
48cc3d9d MK |
69 | POSIX.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) |