OSDN Git Service

6c405005710373dbe9d244fc56f9b8dca5b5057c
[linuxjm/LDP_man-pages.git] / original / man3 / bcopy.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
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.
12 .\"
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.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
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 .\" "
33 .TH BCOPY 3 2013-10-22 "Linux" "Linux Programmer's Manual"
34 .SH NAME
35 bcopy \- copy byte sequence
36 .SH SYNOPSIS
37 .nf
38 .B #include <strings.h>
39 .sp
40 .BI "void bcopy(const void *" src ", void *" dest ", size_t " n );
41 .fi
42 .SH DESCRIPTION
43 The
44 .BR bcopy ()
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.
52 .SH RETURN VALUE
53 None.
54 .SH ATTRIBUTES
55 .SS Multithreading (see pthreads(7))
56 The
57 .BR bcopy ()
58 function is thread-safe.
59 .SH CONFORMING TO
60 4.3BSD.
61 This function is deprecated (marked as LEGACY in POSIX.1-2001): use
62 .BR memcpy (3)
63 or
64 .BR memmove (3)
65 in new programs.
66 Note that the first two arguments
67 are interchanged for
68 .BR memcpy (3)
69 and
70 .BR memmove (3).
71 POSIX.1-2008 removes the specification of
72 .BR bcopy ().
73 .SH SEE ALSO
74 .BR memccpy (3),
75 .BR memcpy (3),
76 .BR memmove (3),
77 .BR strcpy (3),
78 .BR strncpy (3)
79 .SH COLOPHON
80 This page is part of release 3.67 of the Linux
81 .I man-pages
82 project.
83 A description of the project,
84 information about reporting bugs,
85 and the latest version of this page,
86 can be found at
87 \%http://www.kernel.org/doc/man\-pages/.