Module Name:    src
Committed By:   dholland
Date:           Sat May  5 21:14:55 UTC 2012

Modified Files:
        src/lib/libc/string: index.3 rindex.3

Log Message:
Describe these as obsolete.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/lib/libc/string/index.3
cvs rdiff -u -r1.12 -r1.13 src/lib/libc/string/rindex.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/string/index.3
diff -u src/lib/libc/string/index.3:1.13 src/lib/libc/string/index.3:1.14
--- src/lib/libc/string/index.3:1.13	Thu Apr 29 06:54:26 2010
+++ src/lib/libc/string/index.3	Sat May  5 21:14:55 2012
@@ -28,7 +28,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     from: @(#)index.3	8.1 (Berkeley) 6/4/93
-.\"	$NetBSD: index.3,v 1.13 2010/04/29 06:54:26 jruoho Exp $
+.\"	$NetBSD: index.3,v 1.14 2012/05/05 21:14:55 dholland Exp $
 .\"
 .Dd April 29, 2010
 .Dt INDEX 3
@@ -52,6 +52,11 @@ locates the first character matching
 .Em char )
 in the nul-terminated string
 .Fa s .
+.Pp
+This function is obsolete.
+The equivalent function
+.Xr strchr 3
+should be used instead.
 .Sh RETURN VALUES
 A pointer to the character is returned if it is found; otherwise
 .Dv NULL

Index: src/lib/libc/string/rindex.3
diff -u src/lib/libc/string/rindex.3:1.12 src/lib/libc/string/rindex.3:1.13
--- src/lib/libc/string/rindex.3:1.12	Thu Apr 29 06:54:26 2010
+++ src/lib/libc/string/rindex.3	Sat May  5 21:14:55 2012
@@ -28,7 +28,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     from: @(#)rindex.3	8.1 (Berkeley) 6/4/93
-.\"	$NetBSD: rindex.3,v 1.12 2010/04/29 06:54:26 jruoho Exp $
+.\"	$NetBSD: rindex.3,v 1.13 2012/05/05 21:14:55 dholland Exp $
 .\"
 .Dd April 29, 2010
 .Dt RINDEX 3
@@ -53,6 +53,11 @@ matching
 .Em char )
 in the nul-terminated string
 .Fa s .
+.Pp
+This function is obsolete.
+The equivalent function
+.Xr strrchr 3
+should be used instead.
 .Sh RETURN VALUES
 A pointer to the character is returned if it is found; otherwise
 .Dv NULL

Reply via email to