summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/strchr.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/string/strchr.3')
-rw-r--r--src/lib/libc/string/strchr.320
1 files changed, 16 insertions, 4 deletions
diff --git a/src/lib/libc/string/strchr.3 b/src/lib/libc/string/strchr.3
index 6a9de9604e..d3194dffab 100644
--- a/src/lib/libc/string/strchr.3
+++ b/src/lib/libc/string/strchr.3
@@ -1,3 +1,5 @@
1.\" $OpenBSD: strchr.3,v 1.10 2011/07/25 00:38:53 schwarze Exp $
2.\"
1.\" Copyright (c) 1990, 1991 The Regents of the University of California. 3.\" Copyright (c) 1990, 1991 The Regents of the University of California.
2.\" All rights reserved. 4.\" All rights reserved.
3.\" 5.\"
@@ -29,9 +31,7 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 32.\" SUCH DAMAGE.
31.\" 33.\"
32.\" $OpenBSD: strchr.3,v 1.9 2007/05/31 19:19:32 jmc Exp $ 34.Dd $Mdocdate: July 25 2011 $
33.\"
34.Dd $Mdocdate: May 31 2007 $
35.Dt STRCHR 3 35.Dt STRCHR 3
36.Os 36.Os
37.Sh NAME 37.Sh NAME
@@ -90,7 +90,8 @@ p = strchr(s, 'o');
90.Xr strsep 3 , 90.Xr strsep 3 ,
91.Xr strspn 3 , 91.Xr strspn 3 ,
92.Xr strstr 3 , 92.Xr strstr 3 ,
93.Xr strtok 3 93.Xr strtok 3 ,
94.Xr wcschr 3
94.Sh STANDARDS 95.Sh STANDARDS
95The 96The
96.Fn strchr 97.Fn strchr
@@ -100,3 +101,14 @@ function conforms to
100The 101The
101.Fn index 102.Fn index
102function is deprecated and shouldn't be used in new code. 103function is deprecated and shouldn't be used in new code.
104.Sh HISTORY
105The
106.Fn index
107function first appeared in
108.At v7 .
109The
110.Fn strchr
111function first appeared in
112.At III
113and was reimplemented for
114.Bx 4.3 Tahoe .