wcsnlen
Section: C Library Functions (3)
Updated: 2026-02-08
Index
JM Home Page
roff page
名前
wcsnlen - 固定長のワイド文字文字列の長さを求める
ライブラリ
標準 C ライブラリ (libc,~-lc)
書式
#include <wchar.h>
size_t wcsnlen(const wchar_t s[], size_t maxlen);
glibc 向けの機能検査マクロの要件 (feature_test_macros(7) 参照):
wcsncasecmp():
Since glibc 2.10:
_POSIX_C_SOURCE >= 200809L
Before glibc 2.10:
_GNU_SOURCE
説明
The wcsnlen() function is the wide-character equivalent of the
strnlen(3) function. It returns the number of wide-characters in the
string pointed to by s, not including the terminating null wide character
(L'\0'), but at most maxlen wide characters (note: this
parameter is not a byte count). In doing this, wcsnlen() looks at only
the first maxlen wide characters at s and never beyond s[maxlen-1].
返り値
wcsnlen() 関数は、wcslen(s) の値が maxlen より小さけれ ば wcslen(s)
を返す。あるいは、s が指すワイド文字列中の 最初の maxlen 文字に ヌルワイド文字が含まれていなければ maxlen を返す。
属性
この節で使用されている用語の説明については、 attributes(7) を参照。
| インターフェース | 属性 | 値
|
|
wcsnlen()
| Thread safety | MT-Safe
|
標準規格
POSIX.1-2008.
歴史
glibc 2.1.
関連項目
strnlen(3), wcslen(3)
Index
- 名前
-
- ライブラリ
-
- 書式
-
- 説明
-
- 返り値
-
- 属性
-
- 標準規格
-
- 歴史
-
- 関連項目
-
This document was created by
man2html,
using the manual pages.