OSDN Git Service

(split) LDP v3.24 -> v3.29 の定型的な変更内容を反映。
[linuxjm/LDP_man-pages.git] / draft / man3 / wcpncpy.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 Wed Oct 27 02:17:42 JST 1999
15 .\"           by FUJIWARA Teruyoshi <fujiwara@linux.or.jp>
16 .\"
17 .TH WCPNCPY 3 2010-09-15 "GNU" "Linux Programmer's Manual"
18 .\"O .SH NAME
19 .SH Ì¾Á°
20 .\"O wcpncpy \- copy a fixed-size string of wide characters,
21 .\"O returning a pointer to its end
22 wcpncpy \- ¸ÇÄêĹ¤Î¥ï¥¤¥Éʸ»úʸ»úÎó¤ò¥³¥Ô¡¼¤·¡¢¤½¤ÎËöÈø¤ò»Ø¤¹¥Ý¥¤¥ó¥¿¤òÊÖ¤¹
23 .\"O .SH SYNOPSIS
24 .SH ½ñ¼°
25 .nf
26 .B #include <wchar.h>
27 .sp
28 .BI "wchar_t *wcpncpy(wchar_t *" dest ", const wchar_t *" src ", size_t " n );
29 .fi
30 .sp
31 .in -4n
32 .\"O Feature Test Macro Requirements for glibc (see
33 .\"O .BR feature_test_macros (7)):
34 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
35 .RB ( feature_test_macros (7)
36 »²¾È):
37 .in
38 .sp
39 .BR wcpncpy ():
40 .PD 0
41 .ad l
42 .RS 4
43 .TP 4
44 .\"O Since glibc 2.10:
45 glibc 2.10 °Ê¹ß:
46 _XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
47 .TP
48 .\"O Before glibc 2.10:
49 glibc 2.10 ¤è¤êÁ°:
50 _GNU_SOURCE
51 .RE
52 .ad
53 .PD
54 .\"O .SH DESCRIPTION
55 .SH ÀâÌÀ
56 .\"O The
57 .\"O .BR wcpncpy ()
58 .\"O function is the wide-character equivalent
59 .\"O of the
60 .\"O .BR stpncpy (3)
61 .\"O function.
62 .\"O It copies at most \fIn\fP wide characters from the wide-character
63 .\"O string pointed to by \fIsrc\fP,
64 .\"O including the terminating L\(aq\\0\(aq character,
65 .\"O to the array pointed to by \fIdest\fP.
66 .\"O Exactly \fIn\fP wide characters are
67 .\"O written at \fIdest\fP.
68 .\"O If the length \fIwcslen(src)\fP is smaller than \fIn\fP,
69 .\"O the remaining wide characters in the array pointed to
70 .\"O by \fIdest\fP are filled with L\(aq\\0\(aq characters.
71 .\"O If the length \fIwcslen(src)\fP is greater or equal
72 .\"O to \fIn\fP, the string pointed to by \fIdest\fP will
73 .\"O not be L\(aq\\0\(aq terminated.
74 .BR wcpncpy ()
75 ´Ø¿ô¤Ï¡¢
76 .BR stpncpy (3)
77 ´Ø¿ô¤ËÂбþ¤¹¤ë¥ï¥¤¥Éʸ»ú´Ø¿ô¤Ç¤¢¤ë¡£
78 ¤³¤Î´Ø¿ô¤Ï¡¢\fIsrc\fP ¤¬»Ø¤¹¥ï¥¤¥Éʸ»úʸ»úÎ󤫤é \fIdest\fP ¤¬»Ø¤¹¥ï¥¤¥Éʸ»úʸ»úÎó
79 ¤Ë¡¢½ªÃ¼¤Î L\(aq\\0\(aq ¤ò´Þ¤á¤ÆºÇÂç \fIn\fP Ê¸»ú¤ò ¥³¥Ô¡¼¤¹¤ë¡£¤Á¤ç¤¦¤É
80 \fIn\fP ¸Ä¤Î¥ï¥¤¥Éʸ»ú¤¬ \fIdest\fP ¤Ë¥³¥Ô¡¼¤µ¤ì¤ë¡£¤Ä¤Þ¤ê¡¢
81 \fIwcslen(src)\fP ¤ÎŤµ¤¬ \fIn\fP ¤è¤ê¾®¤µ¤±¤ì¤Ð¡¢\fIdest\fP ¤¬»Ø¤¹ÇÛ
82 ÎóÃæ¤Î»Ä¤ê¤Î¥ï¥¤¥Éʸ»ú¤Ï L\(aq\\0\(aq Ê¸»ú¤ÇËä¤á¤é¤ì¤ë¡£¤â¤·
83 \fIwcslen(src)\fP ¤ÎŤµ¤¬ \fIn\fP °Ê¾å¤Ê¤é¤Ð¡¢\fIdest\fP ¤¬»Ø¤¹Ê¸»úÎó
84 ¤Ï L\(aq\\0\(aq ¤Ç½ªÃ¼¤·¤Ê¤¤¡£
85 .PP
86 .\"O The strings may not overlap.
87 2 ¤Ä¤Îʸ»úÎó¤Ï½Å¤Ê¤Ã¤Æ¤¤¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
88 .PP
89 .\"O The programmer must ensure that there is room for at least \fIn\fP wide
90 .\"O characters at \fIdest\fP.
91 ¥×¥í¥°¥é¥Þ¤Ï¡¢¾¯¤Ê¤¯¤È¤â \fIn\fP ¸Ä¤Î¥ï¥¤¥Éʸ»ú¤ò³ÊǼ¤Ç¤­¤ëÎΰè¤ò
92 \fIdest\fP ¤Ë³ÎÊݤ·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
93 .\"O .SH "RETURN VALUE"
94 .SH ÊÖ¤êÃÍ
95 .\"O .BR wcpncpy ()
96 .\"O returns a pointer to the last wide character written, that is,
97 .\"O \fIdest + n \- 1\fP.
98 .BR wcpncpy ()
99 ¤Ï¡¢ºÇ¸å¤Ë½ñ¤­¹þ¤Þ¤ì¤¿¥ï¥¤¥Éʸ»ú¤Ø¤Î¥Ý¥¤¥ó¥¿¡¢
100 ¤¹¤Ê¤ï¤Á \fIdest + n \- 1\fP ¤òÊÖ¤¹¡£
101 .\"O .SH "CONFORMING TO"
102 .SH ½àµò
103 .\"O This function is a GNU extension.
104 ¤³¤Î´Ø¿ô¤Ï GNU ³ÈÄ¥¤Ç¤¢¤ë¡£
105 .\"O .SH "SEE ALSO"
106 .SH ´ØÏ¢¹àÌÜ
107 .BR stpncpy (3),
108 .BR wcsncpy (3),
109 .BR feature_test_macros (7)