OSDN Git Service

3ca6a16682d11d89ab51a0a6c0ceb37d26d1e343
[linuxjm/LDP_man-pages.git] / draft / man3 / wcsncpy.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 .\"   ISO/IEC 9899:1999
13 .\"
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>
17 .\"
18 .TH WCSNCPY 3 1999-07-25 "GNU" "Linux Programmer's Manual"
19 .\"O .SH NAME
20 .SH Ì¾Á°
21 .\"O wcsncpy \- copy a fixed-size string of wide characters
22 wcsncpy \- ¸ÇÄêĹ¤Î¥ï¥¤¥Éʸ»úʸ»úÎó¤ò¥³¥Ô¡¼¤¹¤ë
23 .\"O .SH SYNOPSIS
24 .SH ½ñ¼°
25 .nf
26 .B #include <wchar.h>
27 .sp
28 .BI "wchar_t *wcsncpy(wchar_t *" dest ", const wchar_t *" src ", size_t " n );
29 .fi
30 .\"O .SH DESCRIPTION
31 .SH ÀâÌÀ
32 .\"O The
33 .\"O .BR wcsncpy ()
34 .\"O function is the wide-character equivalent of the
35 .\"O .BR strncpy (3)
36 .\"O function.
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.
50 .BR wcsncpy ()
51 ´Ø¿ô¤Ï¡¢
52 .BR strncpy (3)
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 ¤Ç½ªÃ¼¤¹¤ë¤³¤È¤Ï¤Ê¤¤¡£
61 .PP
62 .\"O The strings may not overlap.
63 ¤³¤ì¤é¤ÎÇÛÎó¤Ï½Å¤Ê¤Ã¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
64 .PP
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"
70 .SH ÊÖ¤êÃÍ
71 .\"O .BR wcsncpy ()
72 .\"O returns \fIdest\fP.
73 .BR wcsncpy ()
74 ¤Ï \fIdest\fP ¤òÊÖ¤¹¡£
75 .\"O .SH "CONFORMING TO"
76 .SH ½àµò
77 C99.
78 .\"O .SH "SEE ALSO"
79 .SH ´ØÏ¢¹àÌÜ
80 .BR strncpy (3)