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
13 .\" About this Japanese page, please contact to JM Project <JM@linux.or.jp>
14 .\" Translated Tue Oct 19 02:22:50 JST 1999
15 .\" by FUJIWARA Teruyoshi <fujiwara@linux.or.jp>
17 .TH WCSNLEN 3 2011-10-01 "GNU" "Linux Programmer's Manual"
20 .\"O wcsnlen \- determine the length of a fixed-size wide-character string
21 wcsnlen \- 固定長のワイド文字文字列の長さを求める
27 .BI "size_t wcsnlen(const wchar_t *" s ", size_t " maxlen );
31 .\"O Feature Test Macro Requirements for glibc (see
32 .\"O .BR feature_test_macros (7)):
34 .RB ( feature_test_macros (7)
43 .\"O Since glibc 2.10:
45 _XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
47 .\"O Before glibc 2.10:
57 .\"O function is the wide-character equivalent
61 .\"O It returns the number of wide-characters in the string pointed to by
62 .\"O \fIs\fP, not including the terminating null wide character (L\(aq\\0\(aq),
65 .\"O wide characters (note: this parameter is not a byte count).
68 .\"O looks only at the first \fImaxlen\fP
69 .\"O wide characters at \fIs\fP and never beyond \fIs+maxlen\fP.
74 この関数は、\fIs\fP が指す文字列中のワイド文字の数を返すが、
75 返されるのはワイド文字で最大 \fImaxlen\fP 文字までである
76 (このパラメータはバイト数ではない点に注意)。
77 また、終端の NULL ワイド文字 (L\(aq\\0\(aq) は含まない。
80 は \fIs\fP が指すワイド文字列の最初の
81 \fImaxlen\fP 文字しか見ず、決して \fIs+maxlen\fP 文字を超えて文字列を
83 .\"O .SH "RETURN VALUE"
87 .\"O function returns \fIwcslen(s)\fP, if that is less than
88 .\"O \fImaxlen\fP, or \fImaxlen\fP if there is no null wide character among the
89 .\"O first \fImaxlen\fP wide characters pointed to by \fIs\fP.
91 関数は、\fIwcslen(s)\fP の値が \fImaxlen\fP より小さけれ
92 ば \fIwcslen(s)\fP を返す。あるいは、\fIs\fP が指すワイド文字列中の
93 最初の \fImaxlen\fP 文字に NULL ワイド文字が含まれていなければ
99 .\"O function is provided in glibc since version 2.1.
101 関数は glibc バージョン 2.1 以降で提供されている。
102 .\"O .SH "CONFORMING TO"