OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / 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 2003-11-01 "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 #define _GNU_SOURCE
27 .br
28 .B #include <wchar.h>
29 .sp
30 .BI "wchar_t *wcpncpy(wchar_t *" dest ", const wchar_t *" src ", size_t " n );
31 .fi
32 .\"O .SH DESCRIPTION
33 .SH ÀâÌÀ
34 .\"O The
35 .\"O .BR wcpncpy ()
36 .\"O function is the wide-character equivalent
37 .\"O of the
38 .\"O .BR stpncpy (3)
39 .\"O function.
40 .\"O It copies at most \fIn\fP wide characters from the wide-character
41 .\"O string pointed to by \fIsrc\fP,
42 .\"O including the terminating L\(aq\\0\(aq character,
43 .\"O to the array pointed to by \fIdest\fP.
44 .\"O Exactly \fIn\fP wide characters are
45 .\"O written at \fIdest\fP.
46 .\"O If the length \fIwcslen(src)\fP is smaller than \fIn\fP,
47 .\"O the remaining wide characters in the array pointed to
48 .\"O by \fIdest\fP are filled with L\(aq\\0\(aq characters.
49 .\"O If the length \fIwcslen(src)\fP is greater or equal
50 .\"O to \fIn\fP, the string pointed to by \fIdest\fP will
51 .\"O not be L\(aq\\0\(aq terminated.
52 .BR wcpncpy ()
53 ´Ø¿ô¤Ï¡¢
54 .BR stpncpy (3)
55 ´Ø¿ô¤ËÂбþ¤¹¤ë¥ï¥¤¥Éʸ»ú´Ø¿ô¤Ç¤¢¤ë¡£
56 ¤³¤Î´Ø¿ô¤Ï¡¢\fIsrc\fP ¤¬»Ø¤¹¥ï¥¤¥Éʸ»úʸ»úÎ󤫤é \fIdest\fP ¤¬»Ø¤¹¥ï¥¤¥Éʸ»úʸ»úÎó
57 ¤Ë¡¢½ªÃ¼¤Î L\(aq\\0\(aq ¤ò´Þ¤á¤ÆºÇÂç \fIn\fP Ê¸»ú¤ò ¥³¥Ô¡¼¤¹¤ë¡£¤Á¤ç¤¦¤É
58 \fIn\fP ¸Ä¤Î¥ï¥¤¥Éʸ»ú¤¬ \fIdest\fP ¤Ë¥³¥Ô¡¼¤µ¤ì¤ë¡£¤Ä¤Þ¤ê¡¢
59 \fIwcslen(src)\fP ¤ÎŤµ¤¬ \fIn\fP ¤è¤ê¾®¤µ¤±¤ì¤Ð¡¢\fIdest\fP ¤¬»Ø¤¹ÇÛ
60 ÎóÃæ¤Î»Ä¤ê¤Î¥ï¥¤¥Éʸ»ú¤Ï L\(aq\\0\(aq Ê¸»ú¤ÇËä¤á¤é¤ì¤ë¡£¤â¤·
61 \fIwcslen(src)\fP ¤ÎŤµ¤¬ \fIn\fP °Ê¾å¤Ê¤é¤Ð¡¢\fIdest\fP ¤¬»Ø¤¹Ê¸»úÎó
62 ¤Ï L\(aq\\0\(aq ¤Ç½ªÃ¼¤·¤Ê¤¤¡£
63 .PP
64 .\"O The strings may not overlap.
65 2 ¤Ä¤Îʸ»úÎó¤Ï½Å¤Ê¤Ã¤Æ¤¤¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
66 .PP
67 .\"O The programmer must ensure that there is room for at least \fIn\fP wide
68 .\"O characters at \fIdest\fP.
69 ¥×¥í¥°¥é¥Þ¤Ï¡¢¾¯¤Ê¤¯¤È¤â \fIn\fP ¸Ä¤Î¥ï¥¤¥Éʸ»ú¤ò³ÊǼ¤Ç¤­¤ëÎΰè¤ò
70 \fIdest\fP ¤Ë³ÎÊݤ·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
71 .\"O .SH "RETURN VALUE"
72 .SH ÊÖ¤êÃÍ
73 .\"O .BR wcpncpy ()
74 .\"O returns a pointer to the last wide character written, that is,
75 .\"O \fIdest + n \- 1\fP.
76 .BR wcpncpy ()
77 ¤Ï¡¢ºÇ¸å¤Ë½ñ¤­¹þ¤Þ¤ì¤¿¥ï¥¤¥Éʸ»ú¤Ø¤Î¥Ý¥¤¥ó¥¿¡¢
78 ¤¹¤Ê¤ï¤Á \fIdest + n \- 1\fP ¤òÊÖ¤¹¡£
79 .\"O .SH "CONFORMING TO"
80 .SH ½àµò
81 .\"O This function is a GNU extension.
82 ¤³¤Î´Ø¿ô¤Ï GNU ³ÈÄ¥¤Ç¤¢¤ë¡£
83 .\"O .SH "SEE ALSO"
84 .SH ´ØÏ¢¹àÌÜ
85 .BR stpncpy (3),
86 .BR wcsncpy (3),
87 .BR feature_test_macros (7)