OSDN Git Service

(split) Import translated manuals from JM CVS Repository.
[linuxjm/LDP_man-pages.git] / draft / man3 / memccpy.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 Sat Jul 24 18:57:24 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:48:30 JST 1997
32 .\"         by Ueyama Rui <ueyama@campusnet.or.jp>
33 .TH MEMCCPY 3  1993-04-10 "GNU" "Linux Programmer's Manual"
34 .\"O .SH NAME
35 .SH Ì¾Á°
36 .\"O memccpy \- copy memory area
37 memccpy \- ¥á¥â¥êÎΰè¤ò¥³¥Ô¡¼¤¹¤ë
38 .\"O .SH SYNOPSIS
39 .SH ½ñ¼°
40 .nf
41 .B #include <string.h>
42 .sp
43 .BI "void *memccpy(void *" dest ", const void *" src ", int " c ", size_t " n );
44 .fi
45 .\"O .SH DESCRIPTION
46 .SH ÀâÌÀ
47 .\"O The
48 .\"O .BR memccpy ()
49 .\"O function copies no more than \fIn\fP bytes from
50 .\"O memory area \fIsrc\fP to memory area \fIdest\fP, stopping when the
51 .\"O character \fIc\fP is found.
52 .BR memccpy ()
53 ¤Ï¡¢¥á¥â¥êÎΰè \fIsrc\fP ¤«¤é¥á¥â¥êÎΰè \fIdest\fP ¤Ë
54 ºÇÂç¤Ç \fIn\fP ¥Ð¥¤¥È¤Î¥³¥Ô¡¼¤ò¹Ô¤¦¡£
55 \fIn\fP ¥Ð¥¤¥È¥³¥Ô¡¼¤¹¤ëÁ°¤Ëʸ»ú \fIc\fP ¤¬¸«¤Ä¤«¤ë¤È¡¢
56 ¤½¤³¤Ç¥³¥Ô¡¼¤òÃæ»ß¤¹¤ë¡£
57
58 .\"O If the memory areas overlap, the results are undefined.
59 ¥³¥Ô¡¼¸µ¤È¥³¥Ô¡¼Àè¤Î¥á¥â¥êÎΰ褬½Å¤Ê¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢
60 ·ë²Ì¤ÏÉÔÄê¤Ç¤¢¤ë¡£
61 .\"O .SH "RETURN VALUE"
62 .SH ÊÖ¤êÃÍ
63 .\"O The
64 .\"O .BR memccpy ()
65 .\"O function returns a pointer to the next character
66 .\"O in \fIdest\fP after \fIc\fP, or NULL if \fIc\fP was not found in the
67 .\"O first \fIn\fP characters of \fIsrc\fP.
68 .BR memccpy ()
69 ¤Ï¡¢\fIdest\fP Ãæ¤Ë¸«¤Ä¤«¤Ã¤¿ \fIc\fP ¤Î
70 ¼¡¤Ë¤¢¤ë¥­¥ã¥é¥¯¥¿¡¼·¿¤ÎÊÑ¿ô¤ò»Ø¤¹¥Ý¥¤¥ó¥¿¤òÊÖ¤¹¡£
71 ¸«¤Ä¤«¤é¤Ê¤«¤Ã¤¿¾ì¹ç¡¢NULL ¤òÊÖ¤¹¡£
72 .\"O .SH "CONFORMING TO"
73 .SH ½àµò
74 SVr4, 4.3BSD, POSIX.1-2001.
75 .\"O .SH "SEE ALSO"
76 .SH ´ØÏ¢¹àÌÜ
77 .BR bcopy (3),
78 .BR memcpy (3),
79 .BR memmove (3),
80 .BR strcpy (3),
81 .BR strncpy (3)