OSDN Git Service

(split) Apply minor changes from v3.32 to v3.35 in the upstream.
[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)