wcsstrのヘルプ・マニュアル
日本語 英語
wcsstr --help
man wcsstr
WCSSTR(3) Linux Programmer’s Manual WCSSTR(3)
名前
wcsstr - ワイド文字文字列中の部分文字列の位置を特定する
書式
#include
wchar_t *wcsstr(const wchar_t *haystack, const wchar_t *needle);
説明
wcsstr() 関数は、 strstr(3) 関数に対応するワイド文字文字列である。この
関数はワイド文字文字列 needle (終端の L'\0' 文字は含まない) が、ワイ ド
文字文字列 haystack の部分文字列として最初に現われる位置を探す。
返り値
wcsstr() 関数は、haystack 中に needle が現われた最初の位置を返す。nee-
dle が haystack の部分文字列でなければ NULL を返す。
以下の特殊な場合に注意すること: needle が空のワイド文字文字列ならば、返
り値は常に haystack 自身となる。
準拠
C99.
関連項目
strstr(3), wcschr(3)
GNU 1999-07-25 WCSSTR(3)
WCSSTR(3) Linux Programmer’s Manual WCSSTR(3)
NAME
wcsstr - locate a substring in a wide-character string
SYNOPSIS
#include
wchar_t *wcsstr(const wchar_t *haystack, const wchar_t *needle);
DESCRIPTION
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 L'\0' character) as a substring
in the wide-character string haystack.
RETURN VALUE
The wcsstr() function returns a pointer to the first occurrence of nee-
dle in haystack. It returns NULL if needle does not occur as a sub-
string in haystack.
Note the special case: If needle is the empty wide-character string,
the return value is always haystack itself.
CONFORMING TO
C99.
SEE ALSO
strstr(3), wcschr(3)
COLOPHON
This page is part of release 3.22 of the Linux man-pages project. A
description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
GNU 1999-07-25 WCSSTR(3)