OSDN Git Service

81cffc7be5e225c4cbd878ebde042754f0cb9932
[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  2011-09-28 "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 null wide character (L\(aq\\0\(aq),
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 null wide 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 terminated by a null wide character.
50 .BR wcsncpy ()
51 関数は、
52 .BR strncpy (3)
53 関数に対応するワイド文字関数である。
54 この関数は \fIsrc\fP が指すワイド文字文字列から、
55 終端の NULL ワイド文字 (L\(aq\\0\(aq) を
56 含めて最大 \fIn\fP 個のワイド文字を、\fIdest\fP が指す配列にコピーする。
57 ちょうど \fIn\fP 個のワイド文字が \fIdest\fP に書き込まれる。
58 \fIwcslen(src)\fP の長さが \fIn\fP より小さければ、\fIdest\fP が指す
59 配列の残りのワイド文字の部分は NULL ワイド文字で埋められる。
60 \fIwcslen(src)\fP の長さが \fIn\fP 以上ならば、\fIdest\fP が指す文字列
61 が NULL ワイド文字で終端されることはない。
62 .PP
63 .\"O The strings may not overlap.
64 これらの配列は重なってはならない。
65 .PP
66 .\"O The programmer must ensure that there is room for at least \fIn\fP wide
67 .\"O characters at \fIdest\fP.
68 プログラマは、少なくとも \fIn\fP 文字のワイド文字が入るだけの領域を
69 \fIdest\fP に対して確保しなければならない。
70 .\"O .SH "RETURN VALUE"
71 .SH 返り値
72 .\"O .BR wcsncpy ()
73 .\"O returns \fIdest\fP.
74 .BR wcsncpy ()
75 は \fIdest\fP を返す。
76 .\"O .SH "CONFORMING TO"
77 .SH 準拠
78 C99.
79 .\"O .SH "SEE ALSO"
80 .SH 関連項目
81 .BR strncpy (3)