diff options
| author | Simon L. B. Nielsen <simon@FreeBSD.org> | 2003-10-29 18:15:48 +0000 |
|---|---|---|
| committer | Simon L. B. Nielsen <simon@FreeBSD.org> | 2003-10-29 18:15:48 +0000 |
| commit | e689ef5e945f8ea83a901b988ce3ddc4a76320d5 (patch) | |
| tree | e1bd353b19f73cbf89e31e495959c46025be1849 /lib/libc/string | |
| parent | 1b8bd21f62a40bbbdbdf6286f11d2c730ae9e8d1 (diff) | |
Notes
Diffstat (limited to 'lib/libc/string')
| -rw-r--r-- | lib/libc/string/index.3 | 14 | ||||
| -rw-r--r-- | lib/libc/string/strchr.3 | 14 |
2 files changed, 14 insertions, 14 deletions
diff --git a/lib/libc/string/index.3 b/lib/libc/string/index.3 index 9db9595f6570..c0b609adc590 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 , diff --git a/lib/libc/string/strchr.3 b/lib/libc/string/strchr.3 index 09b84146cb49..2936be77fd5a 100644 --- a/lib/libc/string/strchr.3 +++ b/lib/libc/string/strchr.3 @@ -59,7 +59,13 @@ function 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 strrchr @@ -75,12 +81,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 strcspn 3 , |
