summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/strstr.3
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-11-20 14:11:07 +0000
committerru <ru@FreeBSD.org>2001-11-20 14:11:07 +0000
commit1863197c2999a4a6c5fbb27bf7dcd12de958bad9 (patch)
tree306992dbb1a14d8dc906df50fcc19356459e2961 /lib/libc/string/strstr.3
parentb766bdc1997e0339036166c5cc24aa3380c28dbc (diff)
downloadFreeBSD-src-1863197c2999a4a6c5fbb27bf7dcd12de958bad9.zip
FreeBSD-src-1863197c2999a4a6c5fbb27bf7dcd12de958bad9.tar.gz
mdoc(7) police: minor markup and spelling fixes.
Diffstat (limited to 'lib/libc/string/strstr.3')
-rw-r--r--lib/libc/string/strstr.311
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/libc/string/strstr.3 b/lib/libc/string/strstr.3
index 4fd02d2..16c6db2 100644
--- a/lib/libc/string/strstr.3
+++ b/lib/libc/string/strstr.3
@@ -85,7 +85,7 @@ Since the
.Fn strnstr
function is a
.Fx
-specific API, it should only be used when portablility is not a concern.
+specific API, it should only be used when portability is not a concern.
.Sh RETURN VALUES
If
.Fa little
@@ -96,7 +96,8 @@ if
.Fa little
occurs nowhere in
.Fa big ,
-NULL is returned;
+.Dv NULL
+is returned;
otherwise a pointer to the first character of the first occurrence of
.Fa little
is returned.
@@ -104,7 +105,7 @@ is returned.
The following sets the pointer
.Va ptr
to the
-.Dq Li Bar Baz
+.Qq Li Bar Baz
portion of
.Va largestring :
.Bd -literal -offset indent
@@ -117,7 +118,9 @@ ptr = strstr(largestring, smallstring);
.Pp
The following sets the pointer
.Va ptr
-to NULL, because only the first 4 characters of
+to
+.Dv NULL ,
+because only the first 4 characters of
.Va largestring
are searched:
.Bd -literal -offset indent
OpenPOWER on IntegriCloud