OSDN Git Service

94f716ab121c1277ee970bd19a477cf6ba57841a
[linuxjm/LDP_man-pages.git] / release / man3 / wcsstr.3
1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2 .\"
3 .\" This is free documentation; you can redistribute it and/or
4 .\" modify it under the terms of the GNU General Public License as
5 .\" published by the Free Software Foundation; either version 2 of
6 .\" the License, or (at your option) any later version.
7 .\"
8 .\" References consulted:
9 .\"   GNU glibc-2 source code and manual
10 .\"   Dinkumware C library reference http://www.dinkumware.com/
11 .\"   OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
12 .\"   ISO/IEC 9899:1999
13 .\"
14 .\" About this Japanese page, please contact to JM Project <JM@linux.or.jp>
15 .\" Translated Sat Oct 23 15:50:55 JST 1999
16 .\"           by FUJIWARA Teruyoshi <fujiwara@linux.or.jp>
17 .\"
18 .TH WCSSTR 3  2011-09-28 "GNU" "Linux Programmer's Manual"
19 .SH 名前
20 wcsstr \- ワイド文字文字列中の部分文字列の位置を特定する
21 .SH 書式
22 .nf
23 .B #include <wchar.h>
24 .sp
25 .BI "wchar_t *wcsstr(const wchar_t *" haystack ", const wchar_t *" needle );
26 .fi
27 .SH 説明
28 .BR wcsstr ()
29 関数は、
30 .BR strstr (3)
31 関数に対応するワイド文字文字列である。
32 この関数はワイド文字文字列 \fIneedle\fP (終端の NULL ワイド文字
33 (L\(aq\\0\(aq) は含まない) が、ワイド文字文字列 \fIhaystack\fP の部分文字列
34 として最初に現われる位置を探す。
35 .SH 返り値
36 .BR wcsstr ()
37 関数は、\fIhaystack\fP 中に \fIneedle\fP が現われた最初の
38 位置を返す。\fIneedle\fP が \fIhaystack\fP の部分文字列でなければ
39 NULL を返す。
40 .PP
41 以下の特殊な場合に注意すること: \fIneedle\fP が空のワイド文字文字列な
42 らば、返り値は常に \fIhaystack\fP 自身となる。
43 .SH 準拠
44 C99.
45 .SH 関連項目
46 .BR strstr (3),
47 .BR wcschr (3)