]>
Commit | Line | Data |
---|---|---|
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 | .\" " | |
31a1b45e | 33 | .TH BCOPY 3 2017-03-13 "Linux" "Linux Programmer's Manual" |
fea681da MK |
34 | .SH NAME |
35 | bcopy \- copy byte sequence | |
36 | .SH SYNOPSIS | |
37 | .nf | |
38 | .B #include <strings.h> | |
68e4db0a | 39 | .PP |
fea681da MK |
40 | .BI "void bcopy(const void *" src ", void *" dest ", size_t " n ); |
41 | .fi | |
42 | .SH DESCRIPTION | |
43 | The | |
63aa9df0 | 44 | .BR bcopy () |
fea681da MK |
45 | function copies |
46 | .I n | |
47 | bytes from | |
48 | .I src | |
49 | to | |
50 | .IR dest . | |
51 | The result is correct, even when both areas overlap. | |
47297adb | 52 | .SH RETURN VALUE |
fea681da | 53 | None. |
d1dcc57f | 54 | .SH ATTRIBUTES |
2ff76b2c MK |
55 | For an explanation of the terms used in this section, see |
56 | .BR attributes (7). | |
57 | .TS | |
58 | allbox; | |
59 | lb lb lb | |
60 | l l l. | |
61 | Interface Attribute Value | |
62 | T{ | |
d1dcc57f | 63 | .BR bcopy () |
2ff76b2c MK |
64 | T} Thread safety MT-Safe |
65 | .TE | |
47297adb | 66 | .SH CONFORMING TO |
c13182ef | 67 | 4.3BSD. |
68e1685c | 68 | This function is deprecated (marked as LEGACY in POSIX.1-2001): use |
fb186734 | 69 | .BR memcpy (3) |
b6dd43ba | 70 | or |
fb186734 | 71 | .BR memmove (3) |
c13182ef | 72 | in new programs. |
c4bb193f | 73 | Note that the first two arguments |
fea681da | 74 | are interchanged for |
fb186734 | 75 | .BR memcpy (3) |
b6dd43ba | 76 | and |
fb186734 | 77 | .BR memmove (3). |
48cc3d9d MK |
78 | POSIX.1-2008 removes the specification of |
79 | .BR bcopy (). | |
47297adb | 80 | .SH SEE ALSO |
879091c9 | 81 | .BR bstring (3), |
fea681da MK |
82 | .BR memccpy (3), |
83 | .BR memcpy (3), | |
84 | .BR memmove (3), | |
85 | .BR strcpy (3), | |
86 | .BR strncpy (3) |