aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/string/index.3
diff options
context:
space:
mode:
authorSimon L. B. Nielsen <simon@FreeBSD.org>2003-09-04 20:36:54 +0000
committerSimon L. B. Nielsen <simon@FreeBSD.org>2003-09-04 20:36:54 +0000
commit4bbf46d65cb866eaf8b210020c4ec86676205c77 (patch)
tree29bec8257b5b6699bda77c45b79daf6a317f5749 /lib/libc/string/index.3
parentf1c194401c52b72f351e39475ccc773592b94308 (diff)
downloadsrc-4bbf46d65cb866eaf8b210020c4ec86676205c77.tar.gz
src-4bbf46d65cb866eaf8b210020c4ec86676205c77.zip
Move a sentence about the terminating \0 from the RETURN VALUES section
(where it didn't really belong), to the DESCRIPTION section. English advice: ceri Requested by: das MFC after: 4 weeks
Notes
Notes: svn path=/head/; revision=119748
Diffstat (limited to 'lib/libc/string/index.3')
-rw-r--r--lib/libc/string/index.314
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/libc/string/index.3 b/lib/libc/string/index.3
index 79eaa458848d..5fd6977a5396 100644
--- a/lib/libc/string/index.3
+++ b/lib/libc/string/index.3
@@ -58,7 +58,13 @@ locates the first occurrence of
.Vt char )
in the string pointed to by
.Fa s .
-The terminating null character is considered part of the string.
+The terminating null character is considered part of the string;
+therefore if
+.Fa c
+is
+.Ql \e0 ,
+the functions locate the terminating
+.Ql \e0 .
.Pp
The
.Fn rindex
@@ -74,12 +80,6 @@ and
return a pointer to the located character, or
.Dv NULL
if the character does not appear in the string.
-If
-.Fa c
-is
-.Ql \e0 ,
-the functions locate the terminating
-.Ql \e0 .
.Sh SEE ALSO
.Xr memchr 3 ,
.Xr strchr 3 ,