OSDN Git Service

(split) Convert release and draft pages to UTF-8.
[linuxjm/LDP_man-pages.git] / draft / man3 / strstr.3
index 4e66d9c..f0a5e69 100644 (file)
 .\"
 .TH STRSTR 3  2011-09-28 "GNU" "Linux Programmer's Manual"
 .\"O .SH NAME
-.SH Ì¾Á°
+.SH 名前
 .\"O strstr, strcasestr \- locate a substring
-strstr, strcasestr \- Éôʬʸ»úÎó¤Î°ÌÃÖ¤ò¼¨¤¹
+strstr, strcasestr \- 部分文字列の位置を示す
 .\"O .SH SYNOPSIS
-.SH ½ñ¼°
+.SH 書式
 .nf
 .B #include <string.h>
 .sp
 .BI "char *strstr(const char *" haystack ", const char *" needle );
 .sp
 .\"O .BR "#define _GNU_SOURCE" "         /* See feature_test_macros(7) */"
-.BR "#define _GNU_SOURCE" "         /* feature_test_macros(7) »²¾È */"
+.BR "#define _GNU_SOURCE" "         /* feature_test_macros(7) 参照 */"
 .sp
 .B #include <string.h>
 .sp
 .BI "char *strcasestr(const char *" haystack ", const char *" needle );
 .fi
 .\"O .SH DESCRIPTION
-.SH ÀâÌÀ
+.SH 説明
 .\"O The
 .\"O .BR strstr ()
 .\"O function finds the first occurrence of the substring
 .\"O \fIneedle\fP in the string \fIhaystack\fP.
 .\"O The terminating null bytes (\(aq\\0\(aq) are not compared.
 .BR strstr ()
-´Ø¿ô¤Ï¡¢Éôʬʸ»úÎó \fIneedle\fP ¤¬Ê¸»úÎó \fIhaystack\fP Ãæ
-¤ÇºÇ½é¤Ë¸½¤ì¤ë°ÌÃÖ¤ò¸«¤Ä¤±¤ë¡£
-ʸ»úÎó¤ò½ªÃ¼ NULL ¥Ð¥¤¥È (\(aq\\0\(aq) ¤ÏÈæ³Ó¤µ¤ì¤Ê¤¤¡£
+関数は、部分文字列 \fIneedle\fP が文字列 \fIhaystack\fP 中
+で最初に現れる位置を見つける。
+文字列を終端 NULL バイト (\(aq\\0\(aq) は比較されない。
 
 .\"O The
 .\"O .BR strcasestr ()
@@ -72,18 +72,18 @@ strstr, strcasestr \- 
 .\"O .BR strstr (),
 .\"O but ignores the case of both arguments.
 .BR strcasestr ()
-´Ø¿ô¤Ï
+関数は
 .BR strstr ()
-´Ø¿ô¤ÈƱÍͤÀ¤¬¡¢
-ξÊý¤Î°ú¿ô¤ËÂФ·¤ÆÂçʸ»ú¾®Ê¸»ú¤ò̵»ë¤¹¤ë¡£
+関数と同様だが、
+両方の引数に対して大文字小文字を無視する。
 .\"O .SH "RETURN VALUE"
-.SH ÊÖ¤êÃÍ
+.SH 返り値
 .\"O These functions return a pointer to the beginning of the
 .\"O substring, or NULL if the substring is not found.
-¤³¤ì¤é¤Î´Ø¿ô¤Ï¡¢Éôʬʸ»úÎó¤Î³«»Ï¤ò»Ø¤¹¥Ý¥¤¥ó¥¿¤òÊÖ¤·¡¢
-¤â¤·Éôʬʸ»úÎ󤬸«¤Ä¤«¤é¤Ê¤¤¾ì¹ç¤Ï NULL ¤òÊÖ¤¹¡£
+これらの関数は、部分文字列の開始を指すポインタを返し、
+もし部分文字列が見つからない場合は NULL を返す。
 .\"O .SH "CONFORMING TO"
-.SH ½àµò
+.SH 準拠
 .\"O The
 .\"O .BR strstr ()
 .\"O function conforms to C89 and C99.
@@ -91,22 +91,22 @@ strstr, strcasestr \- 
 .\"O .BR strcasestr ()
 .\"O function is a nonstandard extension.
 .BR strstr ()
-´Ø¿ô¤Ï C89 ¤È C99 ¤Ë½àµò¤·¤Æ¤¤¤ë¡£
+関数は C89 と C99 に準拠している。
 .BR strcasestr ()
-´Ø¿ô¤ÏÈóɸ½à³ÈÄ¥¤Ç¤¢¤ë¡£
+関数は非標準拡張である。
 .\"O .SH BUGS
-.SH ¥Ð¥°
+.SH ã\83\90ã\82°
 .\"O Early versions of Linux libc (like 4.5.26) would not allow
 .\"O an empty \fIneedle\fP argument for
 .\"O .BR strstr ().
 .\"O Later versions (like 4.6.27) work correctly,
 .\"O and return \fIhaystack\fP when \fIneedle\fP is empty.
-Linux libc ¤Î½é´ü¤Î¥Ð¡¼¥¸¥ç¥ó(4.5.26 ¤Þ¤Ç)¤Ï
+Linux libc の初期のバージョン(4.5.26 まで)は
 .BR strstr ()
-´Ø¿ô¤Î \fIneedle\fP °ú¿ô¤Ë¶õʸ»úÎó¤ò»ØÄê¤Ç¤­¤Ê¤¤¡£
-ºÇ¶á¤Î¥Ð¡¼¥¸¥ç¥ó(4.6.27 °Ê¹ß)¤ÏÀµ¤·¤¯Æ°ºî¤·¡¢
-\fIneedle\fP ¤¬¶õ¤Î»þ¤Ï \fIhaystack\fP ¤òÊÖ¤¹¡£
-.SH ´ØÏ¢¹àÌÜ
+関数の \fIneedle\fP 引数に空文字列を指定できない。
+最近のバージョン(4.6.27 以降)は正しく動作し、
+\fIneedle\fP が空の時は \fIhaystack\fP を返す。
+.SH 関連項目
 .BR index (3),
 .BR memchr (3),
 .BR rindex (3),