1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
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.
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
14 .\" About this Japanese page, please contact to JM Project <JM@linux.or.jp>
15 .\" Translated Tue Oct 19 02:13:45 JST 1999
16 .\" by FUJIWARA Teruyoshi <fujiwara@linux.or.jp>
18 .TH WCSNCPY 3 1999-07-25 "GNU" "Linux Programmer's Manual"
21 .\"O wcsncpy \- copy a fixed-size string of wide characters
22 wcsncpy \- ¸ÇÄêĹ¤Î¥ï¥¤¥Éʸ»úʸ»úÎó¤ò¥³¥Ô¡¼¤¹¤ë
28 .BI "wchar_t *wcsncpy(wchar_t *" dest ", const wchar_t *" src ", size_t " n );
34 .\"O function is the wide-character equivalent of the
37 .\"O It copies at most \fIn\fP wide characters from the wide-character
38 .\"O string pointed to by \fIsrc\fP,
39 .\"O including the terminating L\(aq\\0\(aq character,
40 .\"O to the array pointed to by \fIdest\fP.
41 .\"O Exactly \fIn\fP wide characters are
42 .\"O written at \fIdest\fP.
43 .\"O If the length \fIwcslen(src)\fP is smaller than \fIn\fP,
44 .\"O the remaining wide characters in the array
45 .\"O pointed to by \fIdest\fP are filled
46 .\"O with L\(aq\\0\(aq characters.
47 .\"O If the length \fIwcslen(src)\fP is greater or equal
48 .\"O to \fIn\fP, the string pointed to by \fIdest\fP
49 .\"O will not be L\(aq\\0\(aq terminated.
53 ´Ø¿ô¤ËÂбþ¤¹¤ë¥ï¥¤¥Éʸ»ú´Ø¿ô¤Ç¤¢¤ë¡£
54 ¤³¤Î´Ø¿ô¤Ï \fIsrc\fP ¤¬»Ø¤¹¥ï¥¤¥Éʸ»úʸ»úÎ󤫤顢½ªÃ¼¤Î L\(aq\\0\(aq ʸ»ú¤ò
55 ´Þ¤á¤ÆºÇÂç \fIn\fP ¸Ä¤Î¥ï¥¤¥Éʸ»ú¤ò¡¢\fIdest\fP ¤¬»Ø¤¹ÇÛÎó¤Ë¥³¥Ô¡¼¤¹¤ë¡£
56 ¤Á¤ç¤¦¤É \fIn\fP ¸Ä¤Î¥ï¥¤¥Éʸ»ú¤¬ \fIdest\fP ¤Ë½ñ¤¹þ¤Þ¤ì¤ë¡£
57 \fIwcslen(src)\fP ¤ÎŤµ¤¬ \fIn\fP ¤è¤ê¾®¤µ¤±¤ì¤Ð¡¢\fIdest\fP ¤¬»Ø¤¹
58 ÇÛÎó¤Î»Ä¤ê¤Î¥ï¥¤¥Éʸ»ú¤ÎÉôʬ¤Ï L\(aq\\0\(aq ʸ»ú¤ÇËä¤á¤é¤ì¤ë¡£
59 \fIwcslen(src)\fP ¤ÎŤµ¤¬ \fIn\fP °Ê¾å¤Ê¤é¤Ð¡¢\fIdest\fP ¤¬»Ø¤¹Ê¸»úÎó
60 ¤¬ L\(aq\\0\(aq ¤Ç½ªÃ¼¤¹¤ë¤³¤È¤Ï¤Ê¤¤¡£
62 .\"O The strings may not overlap.
63 ¤³¤ì¤é¤ÎÇÛÎó¤Ï½Å¤Ê¤Ã¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
65 .\"O The programmer must ensure that there is room for at least \fIn\fP wide
66 .\"O characters at \fIdest\fP.
67 ¥×¥í¥°¥é¥Þ¤Ï¡¢¾¯¤Ê¤¯¤È¤â \fIn\fP ʸ»ú¤Î¥ï¥¤¥Éʸ»ú¤¬Æþ¤ë¤À¤±¤ÎÎΰè¤ò
68 \fIdest\fP ¤ËÂФ·¤Æ³ÎÊݤ·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
69 .\"O .SH "RETURN VALUE"
72 .\"O returns \fIdest\fP.
74 ¤Ï \fIdest\fP ¤òÊÖ¤¹¡£
75 .\"O .SH "CONFORMING TO"