| 1 |
'\" t |
| 2 |
.\" Copyright 1993 David Metcalfe ([email protected]) |
| 3 |
.\" |
| 4 |
.\" SPDX-License-Identifier: Linux-man-pages-copyleft |
| 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 <[email protected]> |
| 12 |
.\" Modified Tue Oct 22 23:48:10 1996 by Eric S. Raymond <[email protected]> |
| 13 |
.\" " |
| 14 |
.TH bcopy 3 2024-05-02 "Linux man-pages 6.9.1" |
| 15 |
.SH NAME |
| 16 |
bcopy \- copy byte sequence |
| 17 |
.SH LIBRARY |
| 18 |
Standard C library |
| 19 |
.RI ( libc ", " \-lc ) |
| 20 |
.SH SYNOPSIS |
| 21 |
.nf |
| 22 |
.B #include <strings.h> |
| 23 |
.P |
| 24 |
.BI "[[deprecated]] void bcopy(const void " src [. n "], void " dest [. n "], \ |
| 25 |
size_t " n ); |
| 26 |
.fi |
| 27 |
.SH DESCRIPTION |
| 28 |
The |
| 29 |
.BR bcopy () |
| 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. |
| 37 |
.SH RETURN VALUE |
| 38 |
None. |
| 39 |
.SH ATTRIBUTES |
| 40 |
For an explanation of the terms used in this section, see |
| 41 |
.BR attributes (7). |
| 42 |
.TS |
| 43 |
allbox; |
| 44 |
lbx lb lb |
| 45 |
l l l. |
| 46 |
Interface Attribute Value |
| 47 |
T{ |
| 48 |
.na |
| 49 |
.nh |
| 50 |
.BR bcopy () |
| 51 |
T} Thread safety MT-Safe |
| 52 |
.TE |
| 53 |
.SH STANDARDS |
| 54 |
None. |
| 55 |
.SH HISTORY |
| 56 |
4.3BSD. |
| 57 |
.P |
| 58 |
Marked as LEGACY in POSIX.1-2001: use |
| 59 |
.BR memcpy (3) |
| 60 |
or |
| 61 |
.BR memmove (3) |
| 62 |
in new programs. |
| 63 |
Note that the first two arguments |
| 64 |
are interchanged for |
| 65 |
.BR memcpy (3) |
| 66 |
and |
| 67 |
.BR memmove (3). |
| 68 |
POSIX.1-2008 removes the specification of |
| 69 |
.BR bcopy (). |
| 70 |
.SH SEE ALSO |
| 71 |
.BR bstring (3), |
| 72 |
.BR memccpy (3), |
| 73 |
.BR memcpy (3), |
| 74 |
.BR memmove (3), |
| 75 |
.BR strcpy (3), |
| 76 |
.BR strncpy (3) |