OSDN Git Service

dd1f334ac727b5a2a8391fdfd214fd97b47f4349
[linuxjm/LDP_man-pages.git] / draft / man3 / wcpcpy.3
1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2 .\"
3 .\" This is free documentation; you can redistribute it and/or
4 .\" modify it under the terms of the GNU General Public License as
5 .\" published by the Free Software Foundation; either version 2 of
6 .\" the License, or (at your option) any later version.
7 .\"
8 .\" References consulted:
9 .\"   GNU glibc-2 source code and manual
10 .\"   Dinkumware C library reference http://www.dinkumware.com/
11 .\"   OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
12 .\"
13 .\" About this Japanese page, please contact to JM Project <JM@linux.or.jp>
14 .\" Translated Mon Oct 25 22:24:35 JST 1999
15 .\"           by FUJIWARA Teruyoshi <fujiwara@linux.or.jp>
16 .\"
17 .TH WCPCPY 3  2011-10-01 "GNU" "Linux Programmer's Manual"
18 .\"O .SH NAME
19 .SH 名前
20 .\"O wcpcpy \- copy a wide-character string, returning a pointer to its end
21 wcpcpy \- ワイド文字文字列をコピーし、その末尾を指すポインタを返す
22 .\"O .SH SYNOPSIS
23 .SH 書式
24 .nf
25 .B #include <wchar.h>
26 .sp
27 .BI "wchar_t *wcpcpy(wchar_t *" dest ", const wchar_t *" src );
28 .fi
29 .sp
30 .in -4n
31 .\"O Feature Test Macro Requirements for glibc (see
32 .\"O .BR feature_test_macros (7)):
33 glibc 向けの機能検査マクロの要件
34 .RB ( feature_test_macros (7)
35 参照):
36 .in
37 .sp
38 .BR wcpcpy ():
39 .PD 0
40 .ad l
41 .RS 4
42 .TP 4
43 .\"O Since glibc 2.10:
44 glibc 2.10 以降:
45 _XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
46 .TP
47 .\"O Before glibc 2.10:
48 glibc 2.10 より前:
49 _GNU_SOURCE
50 .RE
51 .ad
52 .PD
53 .\"O .SH DESCRIPTION
54 .SH 説明
55 .\"O The
56 .\"O .BR wcpcpy ()
57 .\"O function is the wide-character equivalent of the
58 .\"O .BR stpcpy (3)
59 .\"O function.
60 .\"O It copies the wide-character string pointed to by \fIsrc\fP,
61 .\"O including the terminating null wide character (L\(aq\\0\(aq),cw
62 .\"O to the array pointed to by
63 .\"O \fIdest\fP.
64 .BR wcpcpy ()
65 関数は、
66 .BR stpcpy (3)
67 関数に対応するワイド文字関数である。
68 この関数は \fIsrc\fP が指すワイド文字文字列を、
69 終端の NULL ワイド文字 (L\(aq\\0\(aq) を含めて、
70 \fIdest\fP が指す配列にコピーする。
71 .PP
72 .\"O The strings may not overlap.
73 これらの文字列は重なっていてはならない。
74 .PP
75 .\"O The programmer must ensure that there
76 .\"O is room for at least \fIwcslen(src)+1\fP
77 .\"O wide characters at \fIdest\fP.
78 プログラマは、\fIdest\fP が指す領域に少なくともワイド文字
79 \fIwcslen(src)+1\fP 個分の領域を確保しなければならない。
80 .\"O .SH "RETURN VALUE"
81 .SH 返り値
82 .\"O .BR wcpcpy ()
83 .\"O returns a pointer to the end of the wide-character string
84 .\"O \fIdest\fP, that is, a pointer to the terminating null wide character.
85 .BR wcpcpy ()
86 は、ワイド文字文字列 \fIdest\fP の末尾、つまり終端の NULL ワイド文字
87 を指すポインタを返す。
88 .\"O .SH "CONFORMING TO"
89 .SH 準拠
90 POSIX.1-2008.
91 .SH 関連項目
92 .BR strcpy (3),
93 .BR wcscpy (3)