aboutsummaryrefslogtreecommitdiffstats
path: root/man3/index.3
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2009-03-15 07:38:08 +1300
committerMichael Kerrisk <mtk.manpages@gmail.com>2009-03-15 08:04:59 +1300
commitcbf4eee73f277232d087611289cefe92f2441783 (patch)
tree9dbcd54e8166d370924253c92af5ad38aa4140c5 /man3/index.3
parentaeb2174ae76865b4e3c0b5f667bf6fc682afa027 (diff)
downloadman-pages-cbf4eee73f277232d087611289cefe92f2441783.tar.gz
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>
Diffstat (limited to 'man3/index.3')
-rw-r--r--man3/index.39
1 files changed, 7 insertions, 2 deletions
diff --git a/man3/index.3 b/man3/index.3
index 64db1445f8..9e31edbe3d 100644
--- a/man3/index.3
+++ b/man3/index.3
@@ -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),