OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / draft / man3 / memccpy.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 .\" Modified Sat Jul 24 18:57:24 1993 by Rik Faith (faith@cs.unc.edu)
30 .\"*******************************************************************
31 .\"
32 .\" This file was generated with po4a. Translate the source file.
33 .\"
34 .\"*******************************************************************
35 .\"
36 .\" Japanese Version Copyright (c) 1997 Ueyama Rui
37 .\"         all rights reserved.
38 .\" Translated Tue Feb 21 0:48:30 JST 1997
39 .\"         by Ueyama Rui <ueyama@campusnet.or.jp>
40 .\"O .SH NAME
41 .\"O memccpy \- copy memory area
42 .\"O .SH SYNOPSIS
43 .\"O .SH DESCRIPTION
44 .\"O The
45 .\"O .BR memccpy ()
46 .\"O function copies no more than \fIn\fP bytes from
47 .\"O memory area \fIsrc\fP to memory area \fIdest\fP, stopping when the
48 .\"O character \fIc\fP is found.
49 .\"O If the memory areas overlap, the results are undefined.
50 .\"O .SH "RETURN VALUE"
51 .\"O The
52 .\"O .BR memccpy ()
53 .\"O function returns a pointer to the next character
54 .\"O in \fIdest\fP after \fIc\fP, or NULL if \fIc\fP was not found in the
55 .\"O first \fIn\fP characters of \fIsrc\fP.
56 .\"O .SH "CONFORMING TO"
57 .\"O .SH "SEE ALSO"
58 .\"
59 .TH MEMCCPY 3 2014\-03\-10 GNU "Linux Programmer's Manual"
60 .SH 名前
61 memccpy \- メモリー領域をコピーする
62 .SH 書式
63 .nf
64 \fB#include <string.h>\fP
65 .sp
66 \fBvoid *memccpy(void *\fP\fIdest\fP\fB, const void *\fP\fIsrc\fP\fB, int \fP\fIc\fP\fB, size_t \fP\fIn\fP\fB);\fP
67 .fi
68 .SH 説明
69 \fBmemccpy\fP()  は、メモリー領域 \fIsrc\fP からメモリー領域 \fIdest\fP に 最大で \fIn\fP バイトのコピーを行う。 \fIn\fP
70 バイトコピーする前に文字 \fIc\fP が見つかると、 そこでコピーを中止する。
71
72 コピー元とコピー先のメモリー領域が重なっている場合、 結果は不定である。
73 .SH 返り値
74 \fBmemccpy\fP()  は、\fIdest\fP 中に見つかった \fIc\fP の 次にあるキャラクター型の変数を指すポインターを返す。
75 見つからなかった場合、NULL を返す。
76 .SH 属性
77 .SS "マルチスレッディング (pthreads(7) 参照)"
78 \fBmemccpy\fP() 関数はスレッドセーフである。
79 .SH 準拠
80 SVr4, 4.3BSD, POSIX.1\-2001.
81 .SH 関連項目
82 \fBbcopy\fP(3), \fBmemcpy\fP(3), \fBmemmove\fP(3), \fBstrcpy\fP(3), \fBstrncpy\fP(3)
83 .SH この文書について
84 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部
85 である。プロジェクトの説明とバグ報告に関する情報は
86 http://www.kernel.org/doc/man\-pages/ に書かれている。