summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/strrchr.3
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2011-07-25 00:38:52 +0000
committerschwarze <schwarze@openbsd.org>2011-07-25 00:38:52 +0000
commit8c40de08f9d12a182e23e357bcca21c5be683dd9 (patch)
treedf554e154d9ded444e70f01eb8a84b1212071f78 /lib/libc/string/strrchr.3
parentoccured -> occurred; (diff)
downloadwireguard-openbsd-8c40de08f9d12a182e23e357bcca21c5be683dd9.tar.xz
wireguard-openbsd-8c40de08f9d12a182e23e357bcca21c5be683dd9.zip
update HISTORY and SEE ALSO for all of string(3), together with various
smaller improvements; jmc@ and nicm@ both ask me to get this in because further tweaking will be easier in-tree
Diffstat (limited to 'lib/libc/string/strrchr.3')
-rw-r--r--lib/libc/string/strrchr.320
1 files changed, 16 insertions, 4 deletions
diff --git a/lib/libc/string/strrchr.3 b/lib/libc/string/strrchr.3
index 0d1f4be9719..9eea08b0a92 100644
--- a/lib/libc/string/strrchr.3
+++ b/lib/libc/string/strrchr.3
@@ -1,3 +1,5 @@
+.\" $OpenBSD: strrchr.3,v 1.9 2011/07/25 00:38:53 schwarze Exp $
+.\"
.\" Copyright (c) 1990, 1991 The Regents of the University of California.
.\" All rights reserved.
.\"
@@ -29,9 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: strrchr.3,v 1.8 2007/05/31 19:19:32 jmc Exp $
-.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: July 25 2011 $
.Dt STRRCHR 3
.Os
.Sh NAME
@@ -92,7 +92,8 @@ p = strrchr(s, 'o');
.Xr strsep 3 ,
.Xr strspn 3 ,
.Xr strstr 3 ,
-.Xr strtok 3
+.Xr strtok 3 ,
+.Xr wcsrchr 3
.Sh STANDARDS
The
.Fn strrchr
@@ -102,3 +103,14 @@ function conforms to
The
.Fn rindex
function is deprecated and shouldn't be used in new code.
+.Sh HISTORY
+The
+.Fn rindex
+function first appeared in
+.At v7 .
+The
+.Fn strrchr
+function first appeared in
+.At III
+and was reimplemented for
+.Bx 4.3 Tahoe .