Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/string Describe these as obsolete.



details:   https://anonhg.NetBSD.org/src/rev/a4cbf546e140
branches:  trunk
changeset: 779135:a4cbf546e140
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sat May 05 21:14:55 2012 +0000

description:
Describe these as obsolete.

diffstat:

 lib/libc/string/index.3  |  7 ++++++-
 lib/libc/string/rindex.3 |  7 ++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)

diffs (48 lines):

diff -r 1d76b086a9cc -r a4cbf546e140 lib/libc/string/index.3
--- a/lib/libc/string/index.3   Sat May 05 21:03:02 2012 +0000
+++ b/lib/libc/string/index.3   Sat May 05 21:14:55 2012 +0000
@@ -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 @@
 .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
diff -r 1d76b086a9cc -r a4cbf546e140 lib/libc/string/rindex.3
--- a/lib/libc/string/rindex.3  Sat May 05 21:03:02 2012 +0000
+++ b/lib/libc/string/rindex.3  Sat May 05 21:14:55 2012 +0000
@@ -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 @@
 .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



Home | Main Index | Thread Index | Old Index