OSDN Git Service

(split) Apply minor changes from v3.32 to v3.35 in the upstream.
[linuxjm/LDP_man-pages.git] / draft / man3 / memcpy.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
11 .\"
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein.  The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
23 .\" References consulted:
24 .\"     Linux libc source code
25 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
26 .\"     386BSD man pages
27 .\" Modified Sun Jul 25 10:41:09 1993 by Rik Faith (faith@cs.unc.edu)
28 .\"
29 .\" Japanese Version Copyright (c) 1997 Ueyama Rui
30 .\"         all rights reserved.
31 .\" Translated Tue Feb 21 0:49:30 JST 1997
32 .\"         by Ueyama Rui <ueyama@campusnet.or.jp>
33 .\"
34 .TH MEMCPY 3  2010-11-15 "" "Linux Programmer's Manual"
35 .\"O .SH NAME
36 .SH Ì¾Á°
37 .\"O memcpy \- copy memory area
38 memcpy \- ¥á¥â¥êÎΰè¤ò¥³¥Ô¡¼¤¹¤ë¡£
39 .\"O .SH SYNOPSIS
40 .SH ½ñ¼°
41 .nf
42 .B #include <string.h>
43 .sp
44 .BI "void *memcpy(void *" dest ", const void *" src ", size_t " n );
45 .fi
46 .\"O .SH DESCRIPTION
47 .SH ÀâÌÀ
48 .\"O The
49 .\"O .BR memcpy ()
50 .\"O function copies \fIn\fP bytes from memory area
51 .\"O \fIsrc\fP to memory area \fIdest\fP.
52 .\"O The memory areas must not overlap.
53 .\"O Use
54 .\"O .BR memmove (3)
55 .\"O if the memory areas do overlap.
56 .BR memcpy ()
57 ¤Ï¥á¥â¥êÎΰè \fIsrc\fP ¤ÎÀèƬ \fPn\fP ¥Ð¥¤¥È¤ò
58 ¥á¥â¥êÎΰè \fIdest\fP ¤Ë¥³¥Ô¡¼¤¹¤ë¡£¥³¥Ô¡¼¸µ¤ÎÎΰè¤È
59 ¥³¥Ô¡¼Àè¤ÎÎΰ褬½Å¤Ê¤Ã¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£½Å¤Ê¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï
60 .BR memmove (3)
61 ¤ò»È¤¦¤³¤È¡£
62 .\"O .SH "RETURN VALUE"
63 .SH ÊÖ¤êÃÍ
64 .\"O The
65 .\"O .BR memcpy ()
66 .\"O function returns a pointer to \fIdest\fP.
67 .BR memcpy ()
68 ¤Ï \fIdest\fP ¤Ø¤Î¥Ý¥¤¥ó¥¿¤òÊÖ¤¹¡£
69 .\"O .SH "CONFORMING TO"
70 .SH ½àµò
71 SVr4, 4.3BSD, C89, C99, POSIX.1-2001.
72 .\"O .SH "SEE ALSO"
73 .SH ´ØÏ¢¹àÌÜ
74 .BR bcopy (3),
75 .BR memccpy (3),
76 .BR memmove (3),
77 .BR mempcpy (3),
78 .BR strcpy (3),
79 .BR strncpy (3),
80 .BR wmemcpy (3)