OSDN Git Service

(split) LDP: Update drafts based on LDP 3.52 release
[linuxjm/LDP_man-pages.git] / draft / man3 / memmem.3
index f2d727e..3a62285 100644 (file)
@@ -55,12 +55,13 @@ Linux のライブラリに関していうと、 libc 5.0.9 と それ以前の
 \fIneedle\fP と \fIhaystack\fP 引数が 入れ替わっており、 \fIneedle\fP が最初に出現する部分の最後を
 示すポインタが返されていたのである。
 
-新旧両方の libc ライブラリが、 \fIneedle\fP が空の場合 (\fIhaystack\fP のかわりに) \fIhaystack\-1\fP\ が
-返されるというバグを持っている。 そして、glibc 2.0 ではさらに悪くなっており、 \fIhaystack\fP の最後のバイトへのポインタを返す。
-これは glibc 2.1 で修正された。
+Both old and new libc's have the bug that if \fIneedle\fP is empty,
+\fIhaystack\-1\fP (instead of \fIhaystack\fP)  is returned.  And glibc 2.0 makes it
+worse, returning a pointer to the last byte of \fIhaystack\fP.  This is fixed
+in glibc 2.1.
 .SH 関連項目
 \fBstrstr\fP(3)
 .SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.51 の一部
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部
 である。プロジェクトの説明とバグ報告に関する情報は
 http://www.kernel.org/doc/man\-pages/ に書かれている。