wcsstr
Section: C Library Functions (3)
Updated: 2026-02-08
Index
JM Home Page
roff page
名前
wcsstr - ワイド文字文字列中の部分文字列の位置を特定する
ライブラリ
標準 C ライブラリ (libc,~-lc)
書式
#include <wchar.h>
wchar_t *wcsstr(const wchar_t *haystack, const wchar_t *needle);
説明
The wcsstr() function is the wide-character equivalent of the
strstr(3) function. It searches for the first occurrence of the
wide-character string needle (without its terminating null wide character
(L'\0')) as a substring in the wide-character string
haystack.
返り値
wcsstr() 関数は、haystack 中に needle が現われた最初の 位置を返す。needle が
haystack の部分文字列でなければ NULL を返す。
以下の特殊な場合に注意すること: needle が空のワイド文字文字列な らば、返り値は常に haystack 自身となる。
属性
この節で使用されている用語の説明については、 attributes(7) を参照。
| インターフェース | 属性 | 値
|
|
wcsstr()
| Thread safety | MT-Safe
|
標準規格
C11, POSIX.1-2008.
歴史
POSIX.1-2001, C99.
関連項目
strstr(3), wcschr(3)
Index
- 名前
-
- ライブラリ
-
- 書式
-
- 説明
-
- 返り値
-
- 属性
-
- 標準規格
-
- 歴史
-
- 関連項目
-
This document was created by
man2html,
using the manual pages.