]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3/bcopy.3
man*/: ffix (un-bracket tables)
[thirdparty/man-pages.git] / man3 / bcopy.3
1 '\" t
2 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
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 <faith@cs.unc.edu>
12 .\" Modified Tue Oct 22 23:48:10 1996 by Eric S. Raymond <esr@thyrsus.com>
13 .\" "
14 .TH bcopy 3 (date) "Linux man-pages (unreleased)"
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 .PP
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 .sp 1
54 .SH STANDARDS
55 None.
56 .SH HISTORY
57 4.3BSD.
58 .PP
59 Marked as LEGACY in POSIX.1-2001: use
60 .BR memcpy (3)
61 or
62 .BR memmove (3)
63 in new programs.
64 Note that the first two arguments
65 are interchanged for
66 .BR memcpy (3)
67 and
68 .BR memmove (3).
69 POSIX.1-2008 removes the specification of
70 .BR bcopy ().
71 .SH SEE ALSO
72 .BR bstring (3),
73 .BR memccpy (3),
74 .BR memcpy (3),
75 .BR memmove (3),
76 .BR strcpy (3),
77 .BR strncpy (3)