summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/strstr.3
diff options
context:
space:
mode:
authorschwarze <>2011-07-25 00:38:53 +0000
committerschwarze <>2011-07-25 00:38:53 +0000
commit339c056f856313e215baab8ddc4bc0ce064b4571 (patch)
tree7c0511efd76ae46bc18c0955627ddf69509014c6 /src/lib/libc/string/strstr.3
parent3ad0ccfe078fe407c711a9d1fb21b9b79aa67f2c (diff)
downloadopenbsd-339c056f856313e215baab8ddc4bc0ce064b4571.tar.gz
openbsd-339c056f856313e215baab8ddc4bc0ce064b4571.tar.bz2
openbsd-339c056f856313e215baab8ddc4bc0ce064b4571.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 'src/lib/libc/string/strstr.3')
-rw-r--r--src/lib/libc/string/strstr.318
1 files changed, 13 insertions, 5 deletions
diff --git a/src/lib/libc/string/strstr.3 b/src/lib/libc/string/strstr.3
index 38bd207727..4069d55ed2 100644
--- a/src/lib/libc/string/strstr.3
+++ b/src/lib/libc/string/strstr.3
@@ -1,3 +1,5 @@
1.\" $OpenBSD: strstr.3,v 1.11 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: strstr.3,v 1.10 2007/09/19 16:06:45 jmc Exp $ 34.Dd $Mdocdate: July 25 2011 $
33.\"
34.Dd $Mdocdate: September 19 2007 $
35.Dt STRSTR 3 35.Dt STRSTR 3
36.Os 36.Os
37.Sh NAME 37.Sh NAME
@@ -79,7 +79,8 @@ is returned.
79.Xr strrchr 3 , 79.Xr strrchr 3 ,
80.Xr strsep 3 , 80.Xr strsep 3 ,
81.Xr strspn 3 , 81.Xr strspn 3 ,
82.Xr strtok 3 82.Xr strtok 3 ,
83.Xr wcsstr 3
83.Sh STANDARDS 84.Sh STANDARDS
84The 85The
85.Fn strstr 86.Fn strstr
@@ -87,6 +88,13 @@ function conforms to
87.St -ansiC . 88.St -ansiC .
88.Sh HISTORY 89.Sh HISTORY
89The 90The
90.Fn strcasestr 91.Fn strstr
91function first appeared in 92function first appeared in
93.Bx 4.3 Reno .
94The
95.Fn strcasestr
96function appeared in glibc 2.1,
97was reimplemented for
98.Fx 4.5
99and ported to
92.Ox 3.8 . 100.Ox 3.8 .