OSDN Git Service

(split) Apply minor changes from v3.32 to v3.35 in the upstream.
[linuxjm/LDP_man-pages.git] / draft / 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 .\"O .SH NAME
20 .SH Ì¾Á°
21 .\"O wcsstr \- locate a substring in a wide-character string
22 wcsstr \- ¥ï¥¤¥Éʸ»úʸ»úÎóÃæ¤ÎÉôʬʸ»úÎó¤Î°ÌÃÖ¤òÆÃÄꤹ¤ë
23 .\"O .SH SYNOPSIS
24 .SH ½ñ¼°
25 .nf
26 .B #include <wchar.h>
27 .sp
28 .BI "wchar_t *wcsstr(const wchar_t *" haystack ", const wchar_t *" needle );
29 .fi
30 .\"O .SH DESCRIPTION
31 .SH ÀâÌÀ
32 .\"O The
33 .\"O .BR wcsstr ()
34 .\"O function is the wide-character equivalent of the
35 .\"O .BR strstr (3)
36 .\"O function.
37 .\"O It searches for the first occurrence of the wide-character string
38 .\"O \fIneedle\fP (without its terminating null wide character (L\(aq\\0\(aq))
39 .\"O as a substring in the wide-character string \fIhaystack\fP.
40 .BR wcsstr ()
41 ´Ø¿ô¤Ï¡¢
42 .BR strstr (3)
43 ´Ø¿ô¤ËÂбþ¤¹¤ë¥ï¥¤¥Éʸ»úʸ»úÎó¤Ç¤¢¤ë¡£
44 ¤³¤Î´Ø¿ô¤Ï¥ï¥¤¥Éʸ»úʸ»úÎó \fIneedle\fP (½ªÃ¼¤Î NULL ¥ï¥¤¥Éʸ»ú
45 (L\(aq\\0\(aq) ¤Ï´Þ¤Þ¤Ê¤¤) ¤¬¡¢¥ï¥¤¥Éʸ»úʸ»úÎó \fIhaystack\fP ¤ÎÉôʬʸ»úÎó
46 ¤È¤·¤ÆºÇ½é¤Ë¸½¤ï¤ì¤ë°ÌÃÖ¤òõ¤¹¡£
47 .\"O .SH "RETURN VALUE"
48 .SH ÊÖ¤êÃÍ
49 .\"O The
50 .\"O .BR wcsstr ()
51 .\"O function returns a pointer to the first occurrence of
52 .\"O \fIneedle\fP in \fIhaystack\fP.
53 .\"O It returns NULL if \fIneedle\fP does not occur
54 .\"O as a substring in \fIhaystack\fP.
55 .BR wcsstr ()
56 ´Ø¿ô¤Ï¡¢\fIhaystack\fP Ãæ¤Ë \fIneedle\fP ¤¬¸½¤ï¤ì¤¿ºÇ½é¤Î
57 °ÌÃÖ¤òÊÖ¤¹¡£\fIneedle\fP ¤¬ \fIhaystack\fP ¤ÎÉôʬʸ»úÎó¤Ç¤Ê¤±¤ì¤Ð
58 NULL ¤òÊÖ¤¹¡£
59 .PP
60 .\"O Note the special case:
61 .\"O If \fIneedle\fP is the empty wide-character string,
62 .\"O the return value is always \fIhaystack\fP itself.
63 °Ê²¼¤ÎÆüì¤Ê¾ì¹ç¤ËÃí°Õ¤¹¤ë¤³¤È: \fIneedle\fP ¤¬¶õ¤Î¥ï¥¤¥Éʸ»úʸ»úÎó¤Ê
64 ¤é¤Ð¡¢ÊÖ¤êÃͤϾï¤Ë \fIhaystack\fP ¼«¿È¤È¤Ê¤ë¡£
65 .\"O .SH "CONFORMING TO"
66 .SH ½àµò
67 C99.
68 .\"O .SH "SEE ALSO"
69 .SH ´ØÏ¢¹àÌÜ
70 .BR strstr (3),
71 .BR wcschr (3)