1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
3 .\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA)
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
10 .\" References consulted:
11 .\" GNU glibc-2 source code and manual
12 .\" Dinkumware C library reference http://www.dinkumware.com/
13 .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
15 .\"*******************************************************************
17 .\" This file was generated with po4a. Translate the source file.
19 .\"*******************************************************************
21 .\" Translated Tue Oct 19 02:22:50 JST 1999
22 .\" by FUJIWARA Teruyoshi <fujiwara@linux.or.jp>
24 .TH WCSNLEN 3 2011\-10\-01 GNU "Linux Programmer's Manual"
26 wcsnlen \- 固定長のワイド文字文字列の長さを求める
29 \fB#include <wchar.h>\fP
31 \fBsize_t wcsnlen(const wchar_t *\fP\fIs\fP\fB, size_t \fP\fImaxlen\fP\fB);\fP
35 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7) 参照):
44 _XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
52 \fBwcsnlen\fP() 関数は、 \fBstrnlen\fP(3) 関数に対応するワイド文字関数である。 この関数は、\fIs\fP
53 が指す文字列中のワイド文字の数を返すが、 返されるのはワイド文字で最大 \fImaxlen\fP 文字までである
54 (このパラメータはバイト数ではない点に注意)。 また、終端の NULL ワイド文字 (L\(aq\e0\(aq) は含まない。 これを行う際には、
55 \fBwcsnlen\fP() は \fIs\fP が指すワイド文字列の最初の \fImaxlen\fP 文字しか見ず、決して \fIs+maxlen\fP
58 \fBwcsnlen\fP() 関数は、\fIwcslen(s)\fP の値が \fImaxlen\fP より小さけれ ば \fIwcslen(s)\fP
59 を返す。あるいは、\fIs\fP が指すワイド文字列中の 最初の \fImaxlen\fP 文字に NULL ワイド文字が含まれていなければ \fImaxlen\fP
62 \fBwcsnlen\fP() 関数は glibc バージョン 2.1 以降で提供されている。
66 \fBstrnlen\fP(3), \fBwcslen\fP(3)
68 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
69 である。プロジェクトの説明とバグ報告に関する情報は
70 http://www.kernel.org/doc/man\-pages/ に書かれている。