OSDN Git Service

(split) DP: release pages (catch up to 3.50).
[linuxjm/LDP_man-pages.git] / release / man3 / wcsnlen.3
1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2 .\"
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.
8 .\" %%%LICENSE_END
9 .\"
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
14 .\"
15 .\"*******************************************************************
16 .\"
17 .\" This file was generated with po4a. Translate the source file.
18 .\"
19 .\"*******************************************************************
20 .TH WCSNLEN 3 2011\-10\-01 GNU "Linux Programmer's Manual"
21 .SH 名前
22 wcsnlen \- 固定長のワイド文字文字列の長さを求める
23 .SH 書式
24 .nf
25 \fB#include <wchar.h>\fP
26 .sp
27 \fBsize_t wcsnlen(const wchar_t *\fP\fIs\fP\fB, size_t \fP\fImaxlen\fP\fB);\fP
28 .fi
29 .sp
30 .in -4n
31 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
32 .in
33 .sp
34 \fBwcsncasecmp\fP():
35 .PD 0
36 .ad l
37 .RS 4
38 .TP  4
39 glibc 2.10 以降:
40 _XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
41 .TP 
42 glibc 2.10 より前:
43 _GNU_SOURCE
44 .RE
45 .ad
46 .PD
47 .SH 説明
48 \fBwcsnlen\fP()  関数は、 \fBstrnlen\fP(3)  関数に対応するワイド文字関数である。 この関数は、\fIs\fP
49 が指す文字列中のワイド文字の数を返すが、 返されるのはワイド文字で最大 \fImaxlen\fP 文字までである
50 (このパラメータはバイト数ではない点に注意)。 また、終端の NULL ワイド文字 (L\(aq\e0\(aq) は含まない。 これを行う際には、
51 \fBwcsnlen\fP()  は \fIs\fP が指すワイド文字列の最初の \fImaxlen\fP 文字しか見ず、決して \fIs+maxlen\fP
52 文字を超えて文字列を 参照することはない。
53 .SH 返り値
54 \fBwcsnlen\fP()  関数は、\fIwcslen(s)\fP の値が \fImaxlen\fP より小さけれ ば \fIwcslen(s)\fP
55 を返す。あるいは、\fIs\fP が指すワイド文字列中の 最初の \fImaxlen\fP 文字に NULL ワイド文字が含まれていなければ \fImaxlen\fP
56 を返す。
57 .SH バージョン
58 \fBwcsnlen\fP()  関数は glibc バージョン 2.1 以降で提供されている。
59 .SH 準拠
60 POSIX.1\-2008.
61 .SH 関連項目
62 \fBstrnlen\fP(3), \fBwcslen\fP(3)
63 .SH この文書について
64 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.50 の一部
65 である。プロジェクトの説明とバグ報告に関する情報は
66 http://www.kernel.org/doc/man\-pages/ に書かれている。