index(3): Mention that index/rindex are deprecated and not specified by

POSIX.1-2008.

MFC after:	1 week
This commit is contained in:
Jilles Tjoelker 2011-03-20 20:53:55 +00:00
parent d413a349e5
commit 2908f971d7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=219803

View File

@ -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 .