[Midnightbsd-cvs] src [10525] trunk/lib/libc/string/memmem.3: cleanup
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Jun 7 18:35:37 EDT 2018
Revision: 10525
http://svnweb.midnightbsd.org/src/?rev=10525
Author: laffer1
Date: 2018-06-07 18:35:37 -0400 (Thu, 07 Jun 2018)
Log Message:
-----------
cleanup
Modified Paths:
--------------
trunk/lib/libc/string/memmem.3
Property Changed:
----------------
trunk/lib/libc/string/memmem.3
Modified: trunk/lib/libc/string/memmem.3
===================================================================
--- trunk/lib/libc/string/memmem.3 2018-06-07 22:35:17 UTC (rev 10524)
+++ trunk/lib/libc/string/memmem.3 2018-06-07 22:35:37 UTC (rev 10525)
@@ -24,9 +24,10 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
+.\" $FreeBSD: stable/10/lib/libc/string/memmem.3 313480 2017-02-09 21:23:41Z ngie $
.\" $MidnightBSD$
.\"
-.Dd August 24, 2005
+.Dd May 26, 2015
.Dt MEMMEM 3
.Os
.Sh NAME
@@ -51,14 +52,12 @@
.Fa big .
.Sh RETURN VALUES
If
-.Fa big_len
-is smaller than
-.Fa little_len ,
+.Fa little_len
+is zero
+.Fa big
+is returned (that is, an empty little is deemed to match at the beginning of
+big);
if
-.Fa little_len
-is 0, if
-.Fa big_len
-is 0 or if
.Fa little
occurs nowhere in
.Fa big ,
@@ -84,3 +83,11 @@
.Sh BUGS
This function was broken in Linux libc up to and including version 5.0.9
and in GNU libc prior to version 2.1.
+Prior to
+.Fx 11.0
+.Nm
+returned
+.Dv NULL
+when
+.Fa little_len
+equals 0.
Property changes on: trunk/lib/libc/string/memmem.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list