svn commit: r219803 - head/lib/libc/string
Jilles Tjoelker
jilles at FreeBSD.org
Sun Mar 20 20:53:55 UTC 2011
Author: jilles
Date: Sun Mar 20 20:53:55 2011
New Revision: 219803
URL: http://svn.freebsd.org/changeset/base/219803
Log:
index(3): Mention that index/rindex are deprecated and not specified by
POSIX.1-2008.
MFC after: 1 week
Modified:
head/lib/libc/string/index.3
Modified: head/lib/libc/string/index.3
==============================================================================
--- head/lib/libc/string/index.3 Sun Mar 20 15:46:05 2011 (r219802)
+++ head/lib/libc/string/index.3 Sun Mar 20 20:53:55 2011 (r219803)
@@ -30,7 +30,7 @@
.\" @(#)index.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd June 4, 1993
+.Dd March 20, 2011
.Dt INDEX 3
.Os
.Sh NAME
@@ -45,6 +45,17 @@
.Ft "char *"
.Fn rindex "const char *s" "int c"
.Sh DESCRIPTION
+.Bf -symbolic
+The
+.Fn index
+and
+.Fn rindex
+functions have been deprecated in favor of
+.Xr strchr 3
+and
+.Xr strrchr 3 .
+.Ef
+.Pp
The
.Fn index
function
@@ -100,3 +111,5 @@ before they were moved to
for
.St -p1003.1-2001
compliance.
+The functions are not specified by
+.St -p1003.1-2008 .
More information about the svn-src-head
mailing list