OSDN Git Service

Update release for LDP 3.67
[linuxjm/LDP_man-pages.git] / release / man3 / stpcpy.3
1 .\" Copyright 1995 James R. Van Zandt <jrv@vanzandt.mv.com>
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 .\"*******************************************************************
26 .\"
27 .\" This file was generated with po4a. Translate the source file.
28 .\"
29 .\"*******************************************************************
30 .\"
31 .\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
32 .\"     all rights reserved.
33 .\" Translated Fri Dec 26 13:14:47 JST 1997
34 .\"     by HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
35 .\"
36 .TH STPCPY 3 2014\-05\-10 GNU "Linux Programmer's Manual"
37 .SH 名前
38 stpcpy \- 文字列をコピーし、コピーした文字列の終りへのポインタを返す
39 .SH 書式
40 .nf
41 \fB#include <string.h>\fP
42 .sp
43 \fBchar *stpcpy(char *\fP\fIdest\fP\fB, const char *\fP\fIsrc\fP\fB);\fP
44 .fi
45 .sp
46 .in -4n
47 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
48 .in
49 .sp
50 \fBstpcpy\fP():
51 .PD 0
52 .ad l
53 .RS 4
54 .TP  4
55 glibc 2.10 以降:
56 _XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
57 .TP 
58 glibc 2.10 より前:
59 _GNU_SOURCE
60 .RE
61 .ad
62 .PD
63 .SH 説明
64 \fBstpcpy\fP()  関数は、\fIsrc\fP で指された文字列を (文字列を終端するヌルバイト (\(aq\e0\(aq) を含めて) \fIdest\fP
65 で指された配列にコピーする。 文字列は重複してはならず、コピー先の文字列 \fIdest\fP はコピーを受け取る のに十分大きくなくてはならない。
66 .SH 返り値
67 \fBstpcpy\fP()  は、文字列 \fIdest\fP の始まりではなく \fB終り\fPを指すポインタ (すなわち、文字列を終端するヌルバイト) を返す。
68 .SH 属性
69 .SS "マルチスレッディング (pthreads(7) 参照)"
70 \fBstpcpy\fP() 関数はスレッドセーフである。
71 .SH 準拠
72 This function was added to POSIX.1\-2008.  Before that, it was not part of
73 the C or POSIX.1 standards, nor customary on UNIX systems.  It first
74 appeared at least as early as 1986, in the Lattice C AmigaDOS compiler, then
75 in the GNU fileutils and GNU textutils in 1989, and in the GNU C library by
76 1992.  It is also present on the BSDs.
77 .SH バグ
78 この関数はバッファ \fIdest\fP の範囲を行き過ぎてしまう可能性がある。
79 .SH 例
80 例として、このプログラムは \fBfoo\fP と \fBbar\fP を連結して \fBfoobar\fP を作るために \fBstpcpy\fP()
81 を使用し、その後表示する。
82 .nf
83
84 #define _GNU_SOURCE
85 #include <string.h>
86 #include <stdio.h>
87
88 int
89 main(void)
90 {
91     char buffer[20];
92     char *to = buffer;
93
94     to = stpcpy(to, "foo");
95     to = stpcpy(to, "bar");
96     printf("%s\en", buffer);
97 }
98 .fi
99 .SH 関連項目
100 \fBbcopy\fP(3), \fBmemccpy\fP(3), \fBmemcpy\fP(3), \fBmemmove\fP(3), \fBstpncpy\fP(3),
101 \fBstrcpy\fP(3), \fBstring\fP(3), \fBwcpcpy\fP(3)
102 .SH この文書について
103 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.67 の一部
104 である。プロジェクトの説明とバグ報告に関する情報は
105 http://www.kernel.org/doc/man\-pages/ に書かれている。