]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3/bcopy.3
All pages: Remove the 5th argument to .TH
[thirdparty/man-pages.git] / man3 / bcopy.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\"
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
4 .\"
5 .\" References consulted:
6 .\" Linux libc source code
7 .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
8 .\" 386BSD man pages
9 .\"
10 .\" Modified Sun Feb 26 14:52:00 1995 by Rik Faith <faith@cs.unc.edu>
11 .\" Modified Tue Oct 22 23:48:10 1996 by Eric S. Raymond <esr@thyrsus.com>
12 .\" "
13 .TH BCOPY 3 2021-03-22 "Linux man-pages (unreleased)"
14 .SH NAME
15 bcopy \- copy byte sequence
16 .SH LIBRARY
17 Standard C library
18 .RI ( libc ", " \-lc )
19 .SH SYNOPSIS
20 .nf
21 .B #include <strings.h>
22 .PP
23 .BI "void bcopy(const void *" src ", void *" dest ", size_t " n );
24 .fi
25 .SH DESCRIPTION
26 The
27 .BR bcopy ()
28 function copies
29 .I n
30 bytes from
31 .I src
32 to
33 .IR dest .
34 The result is correct, even when both areas overlap.
35 .SH RETURN VALUE
36 None.
37 .SH ATTRIBUTES
38 For an explanation of the terms used in this section, see
39 .BR attributes (7).
40 .ad l
41 .nh
42 .TS
43 allbox;
44 lbx lb lb
45 l l l.
46 Interface Attribute Value
47 T{
48 .BR bcopy ()
49 T} Thread safety MT-Safe
50 .TE
51 .hy
52 .ad
53 .sp 1
54 .SH STANDARDS
55 4.3BSD.
56 This function is deprecated (marked as LEGACY in POSIX.1-2001): use
57 .BR memcpy (3)
58 or
59 .BR memmove (3)
60 in new programs.
61 Note that the first two arguments
62 are interchanged for
63 .BR memcpy (3)
64 and
65 .BR memmove (3).
66 POSIX.1-2008 removes the specification of
67 .BR bcopy ().
68 .SH SEE ALSO
69 .BR bstring (3),
70 .BR memccpy (3),
71 .BR memcpy (3),
72 .BR memmove (3),
73 .BR strcpy (3),
74 .BR strncpy (3)