index.3: Note that POSIX.1-2008 recommends strchr(3) and strrchr(3) instead

Reported-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2009-03-15 07:38:08 +13:00
parent aeb2174ae7
commit cbf4eee73f
1 changed files with 7 additions and 2 deletions

View File

@ -26,7 +26,7 @@
.\" 386BSD man pages
.\" Modified Mon Apr 12 12:54:34 1993, David Metcalfe
.\" Modified Sat Jul 24 19:13:52 1993, Rik Faith (faith@cs.unc.edu)
.TH INDEX 3 2008-08-06 "GNU" "Linux Programmer's Manual"
.TH INDEX 3 2009-03-15 "GNU" "Linux Programmer's Manual"
.SH NAME
index, rindex \- locate character in string
.SH SYNOPSIS
@ -62,7 +62,12 @@ the matched character or NULL if the character is not found.
POSIX.1-2008 removes the specifications of
.BR index ()
and
.BR rindex ().
.BR rindex (),
recommending
.BR strchr (3)
and
.BR strrchr (3)
instead.
.SH "SEE ALSO"
.BR memchr (3),
.BR strchr (3),